javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtdisplaybase.cpp
branchRCL_3
changeset 19 71c436fe3ce0
parent 17 0fd27995241b
child 24 6c158198356e
equal deleted inserted replaced
18:9ac0a0a7da70 19:71c436fe3ce0
   701 
   701 
   702 void ASwtDisplayBase::PostCloseEventL(TSwtPeer aPeer, TBool& aDispatched)
   702 void ASwtDisplayBase::PostCloseEventL(TSwtPeer aPeer, TBool& aDispatched)
   703 {
   703 {
   704     ASSERT_NATIVEUITHREAD();
   704     ASSERT_NATIVEUITHREAD();
   705     iEventQueue->PushL(new(ELeave) CSwtCloseEvent(aPeer, aDispatched));
   705     iEventQueue->PushL(new(ELeave) CSwtCloseEvent(aPeer, aDispatched));
       
   706 }
       
   707 
       
   708 void ASwtDisplayBase::PostShowFocusedControlEventL(TSwtPeer aPeer)
       
   709 {
       
   710     ASSERT_NATIVEUITHREAD();
       
   711     iEventQueue->PushL(new(ELeave) CSwtShowFocusedControlEvent(aPeer));
   706 }
   712 }
   707 
   713 
   708 TInt ASwtDisplayBase::ApplicationUid()
   714 TInt ASwtDisplayBase::ApplicationUid()
   709 {
   715 {
   710     return iApplicationUid;
   716     return iApplicationUid;
  1146     if (iLongTapControl)
  1152     if (iLongTapControl)
  1147     {
  1153     {
  1148         // Forward delayed pointer event
  1154         // Forward delayed pointer event
  1149         TPointerEvent event(iLongTapPointerEvent);
  1155         TPointerEvent event(iLongTapPointerEvent);
  1150         event.iType = TPointerEvent::EButton1Up;
  1156         event.iType = TPointerEvent::EButton1Up;
  1151         iLongTapControl->HandlePointerEventL(event); // revert
  1157 
       
  1158         MSwtShell* shell = iLongTapControl->ShellInterface();
       
  1159         if (shell)
       
  1160         {
       
  1161             // The Shells do not process (forward event to children
       
  1162             // or send mouse event to Java) the pointer if revert is on.
       
  1163             // Therefore reset early to let Shell send the mouse event.
       
  1164             CancelLongTapAnimation();
       
  1165             shell->Control()->HandlePointerEventL(event); // revert
       
  1166         }
       
  1167         else
       
  1168         {
       
  1169             iLongTapControl->HandlePointerEventL(event); // revert
       
  1170         }
  1152     }
  1171     }
  1153 
  1172 
  1154     // Just to clear the flags.
  1173     // Just to clear the flags.
  1155     CancelLongTapAnimation();
  1174     CancelLongTapAnimation();
  1156 }
  1175 }