webengine/osswebengine/WebKit/s60/plugins/PluginWin.h
branchRCL_3
changeset 49 919f36ff910f
parent 48 79859ed3eea9
equal deleted inserted replaced
48:79859ed3eea9 49:919f36ff910f
    21 #define PlUGINWIN_H
    21 #define PlUGINWIN_H
    22 
    22 
    23 //  INCLUDES
    23 //  INCLUDES
    24 #include <e32def.h>
    24 #include <e32def.h>
    25 #include <coecntrl.h>
    25 #include <coecntrl.h>
    26 #include <PluginAdapterInterface.h>
    26 #include <pluginadapterinterface.h>
    27 #include <npapi.h>
    27 #include <npapi.h>
    28 #include <rt_gesturehelper.h>
    28 #include <rt_gesturehelper.h>
       
    29 #include <stmgestureinterface.h>
    29 
    30 
    30 // FORWARD DECLARATIONS
    31 // FORWARD DECLARATIONS
    31 class PluginSkin;
    32 class PluginSkin;
    32 class PluginHandler;
    33 class PluginHandler;
    33 class PluginStream;
    34 class PluginStream;
   476     
   477     
   477     
   478     
   478     void ToggleScreenMode(bool aFullScreen);
   479     void ToggleScreenMode(bool aFullScreen);
   479     void PlayPausePluginL ();
   480     void PlayPausePluginL ();
   480     void HandlePointerEventFromPluginL(const TPointerEvent& aEvent);
   481     void HandlePointerEventFromPluginL(const TPointerEvent& aEvent);
   481     TBool HandleGesture(const RT_GestureHelper::TGestureEvent& aEvent);    
   482     TBool HandleGesture(const TStmGestureEvent& aEvent);    
   482 	TBool Windowed() { return m_windowedPlugin;}
   483 	TBool Windowed() { return m_windowedPlugin;}
       
   484 	bool containsPoint(WebView& view, const TPoint& pt);
       
   485 	void SetBitmapFromPlugin(TInt aHandle);
       
   486 	TBool IsPluginFocused() {return m_pluginfocus; }
       
   487 	TBool IsPluginBitMapSet() {return m_pluginHasBitmap; }
       
   488 	CFbsBitmap* PluginBitmap() {return m_pausedBitmap; }
       
   489 	void GetBitmapFromPlugin (bool status);
       
   490 	void ClearPluginBitmap();
       
   491 	TBool IsCollectBitmapSupported();
       
   492 	void drawBitmapToWebCoreContext();
       
   493 	void notifyAPChange(void* ap);
   483     protected: // New functions
   494     protected: // New functions
   484 
   495 
   485         /**
   496         /**
   486         * C++ default constructor.
   497         * C++ default constructor.
   487         *
   498         *
   503         bool                                m_transparentPlugin;
   514         bool                                m_transparentPlugin;
   504         CFbsBitmap*                         m_bitmap;       //The bitmap for windowless plugin
   515         CFbsBitmap*                         m_bitmap;       //The bitmap for windowless plugin
   505         bool                                m_fullscreen;
   516         bool                                m_fullscreen;
   506         bool                                m_windowCreated;
   517         bool                                m_windowCreated;
   507         bool                                m_forceScroll;
   518         bool                                m_forceScroll;
       
   519         bool                                m_visibilty;
       
   520         CFbsBitmap*                         m_pausedBitmap;       //Plugin paused Bitmap
       
   521         bool                                m_pluginHasBitmap;
       
   522         bool                                m_BitmapSupported;
       
   523         bool                                m_PluginInvisibleOnPinchZoom; 
   508     };
   524     };
   509 
   525 
   510 
   526 
   511 #endif      // PluginWin_H
   527 #endif      // PluginWin_H
   512 
   528