videoplayback/videoplaybackviews/src/mpxvideoplaybackcontainer.cpp
branchRCL_3
changeset 12 7f2b2a65da29
parent 10 112a725ff2c2
child 14 55fa1ec415c6
equal deleted inserted replaced
11:8970fbd719ec 12:7f2b2a65da29
    14 * Description:  Implementation of Video playback view's container.
    14 * Description:  Implementation of Video playback view's container.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // Version : %version: e003sa33#26 %
    19 // Version : %version: 27 %
    20 
    20 
    21 
    21 
    22 // INCLUDE FILES
    22 // INCLUDE FILES
    23 
    23 
    24 #include <w32std.h> // RWindowBase
    24 #include <w32std.h> // RWindowBase
   383 //
   383 //
   384 // Gets called from the Controls Controller
   384 // Gets called from the Controls Controller
   385 // only if if OK to handle pointer events
   385 // only if if OK to handle pointer events
   386 // -------------------------------------------------------------------------------------------------
   386 // -------------------------------------------------------------------------------------------------
   387 //
   387 //
   388 EXPORT_C void CMPXVideoPlaybackContainer::DoHandlePointerEventL( const TPointerEvent& aPointerEvent )
   388 EXPORT_C
   389 {
   389 void CMPXVideoPlaybackContainer::DoHandlePointerEventL( const TPointerEvent& aPointerEvent )
   390     MPX_DEBUG(_L("CMPXVideoPlaybackContainer::DoHandlePointerEventL()"));
   390 {
   391 
   391     MPX_ENTER_EXIT(_L("CMPXVideoPlaybackContainer::DoHandlePointerEventL()"),
   392     if ( AknLayoutUtils::PenEnabled() && aPointerEvent.iType == TPointerEvent::EButton1Up )
   392                    _L("aPointerEvent.iType = %d"), aPointerEvent.iType );
   393     {
   393 
   394         iControlsController->HandleEventL( EMPXControlCmdToggleVisibility );
   394     if ( AknLayoutUtils::PenEnabled() )
       
   395     {
       
   396         if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
       
   397         {
       
   398             iControlsController->HandleEventL( EMPXControlCmdToggleVisibility );
       
   399 
       
   400             SetPointerCapture( EFalse );
       
   401             ClaimPointerGrab( EFalse );
       
   402         }
       
   403         else if ( aPointerEvent.iType == TPointerEvent::EButton1Down )
       
   404         {
       
   405             SetPointerCapture( ETrue );
       
   406             ClaimPointerGrab( ETrue );
       
   407         }
   395     }
   408     }
   396 }
   409 }
   397 
   410 
   398 // -------------------------------------------------------------------------------------------------
   411 // -------------------------------------------------------------------------------------------------
   399 //   CMPXVideoPlaybackContainer::Draw()
   412 //   CMPXVideoPlaybackContainer::Draw()