browserplugins/browseraudiovideoplugin/src/BavpPlugin.cpp
changeset 5 e45c3f40ea5f
parent 0 84ad3b177aa3
child 10 4530440261a8
--- a/browserplugins/browseraudiovideoplugin/src/BavpPlugin.cpp	Fri May 08 08:18:43 2009 +0300
+++ b/browserplugins/browseraudiovideoplugin/src/BavpPlugin.cpp	Fri Jul 03 15:46:41 2009 +0100
@@ -29,6 +29,7 @@
 #include "BavpControllerVideo.h"
 
 #include <npscript.h>
+using namespace RT_GestureHelper;
 
 // CONSTANTS
 _LIT( KBrowserAVPluginRscFileZ, "z:BrowserAudioVideoPlugin.rsc" );
@@ -365,5 +366,26 @@
     iMimeType = type.Alloc();
     }
     
+// -----------------------------------------------------------------------------
+// CBavpPlugin::HandleGesture
+// -----------------------------------------------------------------------------
+TBool CBavpPlugin::HandleGesture(void* aEvent)
+    {
+    TBool ret = EFalse;
+    TGestureEvent *gesture = static_cast<TGestureEvent*>(aEvent);
+    ret = iBavpController->HandleGesture(gesture);
+    
+    return ret;
+    }
+
+// -----------------------------------------------------------------------------
+// CBavpPlugin::getNPNFuncs
+// -----------------------------------------------------------------------------
+NPNetscapeFuncs* CBavpPlugin::getNPNFuncs()
+    {
+    CBavpPluginEcomMain* npm = (CBavpPluginEcomMain*)Dll::Tls();
+    return npm ? npm->Funcs() : NULL;
+    }
+
 
 //  End of File