41 #ifndef _nsPluginNativeWindow_h_
42 #define _nsPluginNativeWindow_h_
46 #include "nsIPluginInstance.h"
47 #include "nsplugindefs.h"
48 #include "nsIWidget.h"
49 #include "nsTraceRefcnt.h"
77 aPluginInstance = mPluginInstance;
81 if (mPluginInstance != aPluginInstance)
82 mPluginInstance = aPluginInstance;
86 nsresult GetPluginWidget(nsIWidget **aWidget) {
87 NS_IF_ADDREF(*aWidget = mWidget);
90 nsresult SetPluginWidget(nsIWidget *aWidget) {
96 virtual nsresult CallSetWindow(nsCOMPtr<nsIPluginInstance> &aPluginInstance) {
99 aPluginInstance->SetWindow(
this);
100 else if (mPluginInstance)
101 mPluginInstance->SetWindow(nsnull);
103 SetPluginInstance(aPluginInstance);
106 #if (MOZ_PLATFORM_MAEMO == 5)
107 #define MOZ_COMPOSITED_PLUGINS
109 #ifdef MOZ_COMPOSITED_PLUGINS
117 nsCOMPtr<nsIPluginInstance> mPluginInstance;
118 nsCOMPtr<nsIWidget> mWidget;
124 #endif //_nsPluginNativeWindow_h_
nsresult GetPluginInstance(nsCOMPtr< nsIPluginInstance > &aPluginInstance)
!!! CAUTION !!!
base class for native plugin window implementations