equal
deleted
inserted
replaced
29 #include "WebCannedImages.h" |
29 #include "WebCannedImages.h" |
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> |
|
36 //#include <Element.h> |
35 //#include <Element.h> |
37 |
36 |
38 // FORWARD DECLARATIONS |
37 // FORWARD DECLARATIONS |
39 class PluginWin; |
38 class PluginWin; |
40 class PluginStream; |
39 class PluginStream; |
199 * @return |
198 * @return |
200 */ |
199 */ |
201 TBool isBrowserScheme(const TPtrC8& url); |
200 TBool isBrowserScheme(const TPtrC8& url); |
202 |
201 |
203 /** |
202 /** |
204 * HandleLosingForeground |
|
205 * Handles losing Foreground event |
|
206 */ |
|
207 void HandleLosingForeground(); |
|
208 |
|
209 /** |
|
210 * HandleLosingForeground |
|
211 * Handles Gaining Foreground event |
|
212 */ |
|
213 void HandleGainingForeground(); |
|
214 |
|
215 /** |
|
216 * |
203 * |
217 * GetLoadMode |
204 * GetLoadMode |
218 * Returns the load mode associated with the "window-type". |
205 * Returns the load mode associated with the "window-type". |
219 */ |
206 */ |
220 TPluginLoadMode GetLoadMode(const TDesC* aWindowType); |
207 TPluginLoadMode GetLoadMode(const TDesC* aWindowType); |
425 TRect getPluginWinRect() const; |
412 TRect getPluginWinRect() const; |
426 void setClipRect(TRect rect); |
413 void setClipRect(TRect rect); |
427 TInt handleNetworkAccess() const; |
414 TInt handleNetworkAccess() const; |
428 WebCore::Element* getElement() {return m_element;} |
415 WebCore::Element* getElement() {return m_element;} |
429 void setElement(WebCore::Element* aElement) {m_element = aElement;} |
416 void setElement(WebCore::Element* aElement) {m_element = aElement;} |
430 void reCreatePlugin(); |
417 |
431 TInt activeStreams() { return m_streams.size(); } |
|
432 void NotifyPluginsForScrollOrPinch(bool status); |
|
433 public: // from MMemoryCollector |
418 public: // from MMemoryCollector |
434 TUint Collect(unsigned int aRequired); |
419 TUint Collect(unsigned int aRequired); |
435 void Restore() {} |
420 void Restore() {} |
436 TOOMPriority Priority() { return EOOM_PriorityLow; } |
421 TOOMPriority Priority() { return EOOM_PriorityLow; } |
437 |
422 |
444 */ |
429 */ |
445 TBool RunScript(); |
430 TBool RunScript(); |
446 RArray<NPN_GenericElement>* genericElementArray(){ |
431 RArray<NPN_GenericElement>* genericElementArray(){ |
447 return iGenericElementArray; |
432 return iGenericElementArray; |
448 } |
433 } |
|
434 private: // private member data |
449 void setPluginWinClipedRect(); |
435 void setPluginWinClipedRect(); |
450 TBool isFlashPlugin(){ |
|
451 return m_flashContent; |
|
452 } |
|
453 TBool IsCollectBitmapSupported(); |
|
454 WebFrame* getWebFrame() const {return m_frame;} |
|
455 void activateVisiblePlugins(); |
|
456 |
|
457 private: // private member data |
|
458 |
|
459 TRect frameVisibleRect() const; |
436 TRect frameVisibleRect() const; |
460 void Close(); |
437 void Close(); |
461 |
438 |
462 const TDesC& GetExecutionMode(); |
439 const TDesC& GetExecutionMode(); |
463 void setupGenericElementArrrayL(); |
440 void setupGenericElementArrrayL(); |
495 WTF::HashSet<PluginStream*> m_streams; |
472 WTF::HashSet<PluginStream*> m_streams; |
496 |
473 |
497 RArray<NPN_GenericElement>* iGenericElementArray; |
474 RArray<NPN_GenericElement>* iGenericElementArray; |
498 TRect m_oldRect; |
475 TRect m_oldRect; |
499 TRect m_oldViewport; |
476 TRect m_oldViewport; |
500 NPObject* m_NPObject; |
477 |
501 |
478 |
502 public: |
479 public: |
503 TInt m_handle; |
480 TInt m_handle; |
504 NPP m_instance; |
481 NPP m_instance; |
505 NPPluginFuncs* m_pluginfuncs; |
482 NPPluginFuncs* m_pluginfuncs; |
506 bool m_resized; |
483 bool m_resized; |