equal
deleted
inserted
replaced
30 #include "PluginPlayer.h" |
30 #include "PluginPlayer.h" |
31 #include "WebFrame.h" |
31 #include "WebFrame.h" |
32 #include "WebFrameView.h" |
32 #include "WebFrameView.h" |
33 #include "WebView.h" |
33 #include "WebView.h" |
34 #include <MemoryManager.h> |
34 #include <MemoryManager.h> |
|
35 #include <npruntime.h> |
35 //#include <Element.h> |
36 //#include <Element.h> |
36 |
37 |
37 // FORWARD DECLARATIONS |
38 // FORWARD DECLARATIONS |
38 class PluginWin; |
39 class PluginWin; |
39 class PluginStream; |
40 class PluginStream; |
414 TInt handleNetworkAccess() const; |
415 TInt handleNetworkAccess() const; |
415 WebCore::Element* getElement() {return m_element;} |
416 WebCore::Element* getElement() {return m_element;} |
416 void setElement(WebCore::Element* aElement) {m_element = aElement;} |
417 void setElement(WebCore::Element* aElement) {m_element = aElement;} |
417 void reCreatePlugin(); |
418 void reCreatePlugin(); |
418 TInt activeStreams() { return m_streams.size(); } |
419 TInt activeStreams() { return m_streams.size(); } |
419 void PlayPauseNotify(bool pause); |
|
420 TPluginLoadMode getLoadMode(){return m_loadmode;} |
420 TPluginLoadMode getLoadMode(){return m_loadmode;} |
421 void setLoadMode(TPluginLoadMode mode){m_loadmode = mode;} |
421 void setLoadMode(TPluginLoadMode mode){m_loadmode = mode;} |
|
422 void NotifyPluginsForScrollOrPinch(bool status); |
422 public: // from MMemoryCollector |
423 public: // from MMemoryCollector |
423 TUint Collect(unsigned int aRequired); |
424 TUint Collect(unsigned int aRequired); |
424 void Restore() {} |
425 void Restore() {} |
425 TOOMPriority Priority() { return EOOM_PriorityLow; } |
426 TOOMPriority Priority() { return EOOM_PriorityLow; } |
426 |
427 |
434 TBool RunScript(); |
435 TBool RunScript(); |
435 RArray<NPN_GenericElement>* genericElementArray(){ |
436 RArray<NPN_GenericElement>* genericElementArray(){ |
436 return iGenericElementArray; |
437 return iGenericElementArray; |
437 } |
438 } |
438 void setPluginWinClipedRect(); |
439 void setPluginWinClipedRect(); |
|
440 TBool IsCollectBitmapSupported(); |
|
441 WebFrame* getWebFrame() const {return m_frame;} |
439 private: // private member data |
442 private: // private member data |
440 |
443 |
441 TRect frameVisibleRect() const; |
444 TRect frameVisibleRect() const; |
442 void Close(); |
445 void Close(); |
443 |
446 |
444 const TDesC& GetExecutionMode(); |
447 const TDesC& GetExecutionMode(); |
445 void setupGenericElementArrrayL(); |
448 void setupGenericElementArrrayL(); |
446 void addWidgetAttributesL(); |
449 void addWidgetAttributesL(); |
|
450 void activateVisiblePlugins(); |
447 // Window-owning CoeControl which wraps the CoeControl created by the plugin |
451 // Window-owning CoeControl which wraps the CoeControl created by the plugin |
448 PluginWin* m_pluginwin; |
452 PluginWin* m_pluginwin; |
449 WebFrame* m_frame; // not owned |
453 WebFrame* m_frame; // not owned |
450 CFont* m_font; |
454 CFont* m_font; |
451 HBufC8* m_url; |
455 HBufC8* m_url; |
478 |
482 |
479 RArray<NPN_GenericElement>* iGenericElementArray; |
483 RArray<NPN_GenericElement>* iGenericElementArray; |
480 TRect m_oldRect; |
484 TRect m_oldRect; |
481 TRect m_oldViewport; |
485 TRect m_oldViewport; |
482 TPluginLoadMode m_loadmode; |
486 TPluginLoadMode m_loadmode; |
|
487 NPObject* m_NPObject; |
483 |
488 |
484 public: |
489 public: |
485 TInt m_handle; |
490 TInt m_handle; |
486 NPP m_instance; |
491 NPP m_instance; |
487 NPPluginFuncs* m_pluginfuncs; |
492 NPPluginFuncs* m_pluginfuncs; |