browserplugins/browseraudiovideoplugin/src/BavpControllerVideo.cpp
changeset 5 e45c3f40ea5f
parent 0 84ad3b177aa3
child 10 4530440261a8
--- a/browserplugins/browseraudiovideoplugin/src/BavpControllerVideo.cpp	Fri May 08 08:18:43 2009 +0300
+++ b/browserplugins/browseraudiovideoplugin/src/BavpControllerVideo.cpp	Fri Jul 03 15:46:41 2009 +0100
@@ -29,6 +29,8 @@
 #include <mmf/common/mmfcontrollerframework.h> 
 #include <MMFScalingCustomCommandConstants.h>
 
+using namespace RT_GestureHelper;
+
 // CONSTANTS
 // One second represented in microseconds
 const TInt KBavpOneSecond = 1000000;
@@ -1344,4 +1346,26 @@
       RevertToNormalScreenL();
       }	
 }
+
+// -----------------------------------------------------------------------------
+// CBavpControllerVideo::HandleGesture
+// -----------------------------------------------------------------------------
+TBool CBavpControllerVideo::HandleGesture(TGestureEvent *gesture)
+{
+    TBool ret = EFalse;
+    TGestureCode gtype =  gesture->Code(EAxisBoth); 
+    switch(gtype)
+        {
+        case EGestureTap:
+            {
+                if (IsClipFullScreen())
+                    {
+                    ToggleScreen();
+                    ret = ETrue;
+                    }
+                break;
+            }
+        }
+    return ret;
+}
 //  End of File