browserplugins/browseraudiovideoplugin/src/BavpControllerVideo.cpp
changeset 15 e45c3f40ea5f
parent 0 84ad3b177aa3
child 18 4530440261a8
equal deleted inserted replaced
10:57d5b8e231c4 15:e45c3f40ea5f
    26 #include "BavpControllerVideo.h"
    26 #include "BavpControllerVideo.h"
    27 #include "BavpView.h"
    27 #include "BavpView.h"
    28 #include "BavpViewFullScreen.h"
    28 #include "BavpViewFullScreen.h"
    29 #include <mmf/common/mmfcontrollerframework.h> 
    29 #include <mmf/common/mmfcontrollerframework.h> 
    30 #include <MMFScalingCustomCommandConstants.h>
    30 #include <MMFScalingCustomCommandConstants.h>
       
    31 
       
    32 using namespace RT_GestureHelper;
    31 
    33 
    32 // CONSTANTS
    34 // CONSTANTS
    33 // One second represented in microseconds
    35 // One second represented in microseconds
    34 const TInt KBavpOneSecond = 1000000;
    36 const TInt KBavpOneSecond = 1000000;
    35 
    37 
  1342 	if ( IsClipFullScreen() )
  1344 	if ( IsClipFullScreen() )
  1343       {
  1345       {
  1344       RevertToNormalScreenL();
  1346       RevertToNormalScreenL();
  1345       }	
  1347       }	
  1346 }
  1348 }
       
  1349 
       
  1350 // -----------------------------------------------------------------------------
       
  1351 // CBavpControllerVideo::HandleGesture
       
  1352 // -----------------------------------------------------------------------------
       
  1353 TBool CBavpControllerVideo::HandleGesture(TGestureEvent *gesture)
       
  1354 {
       
  1355     TBool ret = EFalse;
       
  1356     TGestureCode gtype =  gesture->Code(EAxisBoth); 
       
  1357     switch(gtype)
       
  1358         {
       
  1359         case EGestureTap:
       
  1360             {
       
  1361                 if (IsClipFullScreen())
       
  1362                     {
       
  1363                     ToggleScreen();
       
  1364                     ret = ETrue;
       
  1365                     }
       
  1366                 break;
       
  1367             }
       
  1368         }
       
  1369     return ret;
       
  1370 }
  1347 //  End of File
  1371 //  End of File