Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Attributes
nsPluginNativeWindow Class Reference

base class for native plugin window implementations More...

import "nsPIPluginHost.idl";

Inheritance diagram for nsPluginNativeWindow:
Inheritance graph
[legend]
Collaboration diagram for nsPluginNativeWindow:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsPluginNativeWindow ()
virtual ~nsPluginNativeWindow ()
nsresult GetPluginInstance (nsCOMPtr< nsIPluginInstance > &aPluginInstance)
 !!! CAUTION !!!
nsresult SetPluginInstance (nsIPluginInstance *aPluginInstance)
nsresult GetPluginWidget (nsIWidget **aWidget)
nsresult SetPluginWidget (nsIWidget *aWidget)
virtual nsresult CallSetWindow (nsCOMPtr< nsIPluginInstance > &aPluginInstance)
 nsPluginNativeWindow ()
virtual ~nsPluginNativeWindow ()
nsresult GetPluginInstance (nsCOMPtr< nsIPluginInstance > &aPluginInstance)
 !!! CAUTION !!!
nsresult SetPluginInstance (nsIPluginInstance *aPluginInstance)
nsresult GetPluginWidget (nsIWidget **aWidget)
nsresult SetPluginWidget (nsIWidget *aWidget)
virtual nsresult CallSetWindow (nsCOMPtr< nsIPluginInstance > &aPluginInstance)

Public Attributes

nsPluginPort * window
PRInt32 x
PRInt32 y
PRUint32 width
PRUint32 height
nsPluginRect clipRect
nsPluginWindowType type

Protected Attributes

nsCOMPtr< nsIPluginInstancemPluginInstance
nsCOMPtr< nsIWidgetmWidget

Detailed Description

base class for native plugin window implementations

Definition at line 53 of file nsPIPluginHost.idl.


Constructor & Destructor Documentation

Definition at line 56 of file nsPIPluginHost.idl.

://developer.netscape.com/docs/manuals/communicator/plugin/pgfn2.htm#1007754
virtual nsPluginNativeWindow::~nsPluginNativeWindow ( ) [inline, virtual]

Definition at line 57 of file nsPIPluginHost.idl.

://developer.netscape.com/docs/manuals/communicator/plugin/pgfn2.htm#1007754

Definition at line 56 of file nsPluginNativeWindow.h.

virtual nsPluginNativeWindow::~nsPluginNativeWindow ( ) [inline, virtual]

Definition at line 57 of file nsPluginNativeWindow.h.

{}

Member Function Documentation

virtual nsresult nsPluginNativeWindow::CallSetWindow ( nsCOMPtr< nsIPluginInstance > &  aPluginInstance) [inline, virtual]

Reimplemented in nsPluginNativeWindowOS2, nsPluginNativeWindowWin, and nsPluginNativeWindowGtk2.

Definition at line 90 of file nsPIPluginHost.idl.

Here is the caller graph for this function:

virtual nsresult nsPluginNativeWindow::CallSetWindow ( nsCOMPtr< nsIPluginInstance > &  aPluginInstance) [inline, virtual]

Reimplemented in nsPluginNativeWindowOS2, nsPluginNativeWindowWin, and nsPluginNativeWindowGtk2.

Definition at line 90 of file nsPluginNativeWindow.h.

                                                                               {
    // null aPluginInstance means that we want to call SetWindow(null)
    if (aPluginInstance)
      aPluginInstance->SetWindow(this);
    else if (mPluginInstance)
      mPluginInstance->SetWindow(nsnull);

    SetPluginInstance(aPluginInstance);
    return NS_OK;
  }

Here is the call graph for this function:

!!! CAUTION !!!

The base class |nsPluginWindow| is defined as a struct in nsplugindefs.h, thus it does not have a destructor of its own. One should never attempt to delete |nsPluginNativeWindow| object instance (or derivatives) using a pointer of |nsPluginWindow *| type. Should such necessity occur it must be properly casted first.

Definition at line 70 of file nsPIPluginHost.idl.

Here is the caller graph for this function:

!!! CAUTION !!!

The base class |nsPluginWindow| is defined as a struct in nsplugindefs.h, thus it does not have a destructor of its own. One should never attempt to delete |nsPluginNativeWindow| object instance (or derivatives) using a pointer of |nsPluginWindow *| type. Should such necessity occur it must be properly casted first.

Definition at line 70 of file nsPluginNativeWindow.h.

                                                                           { 
    aPluginInstance = mPluginInstance;
    return NS_OK;
  }

Definition at line 80 of file nsPluginNativeWindow.h.

                                                {
    NS_IF_ADDREF(*aWidget = mWidget);
    return NS_OK;
  }

Definition at line 80 of file nsPIPluginHost.idl.

Here is the caller graph for this function:

Definition at line 74 of file nsPIPluginHost.idl.

Here is the caller graph for this function:

Definition at line 74 of file nsPluginNativeWindow.h.

                                                                 { 
    if (mPluginInstance != aPluginInstance)
      mPluginInstance = aPluginInstance;
    return NS_OK;
  }

Definition at line 84 of file nsPIPluginHost.idl.

Here is the caller graph for this function:

Definition at line 84 of file nsPluginNativeWindow.h.

                                               { 
    mWidget = aWidget;
    return NS_OK;
  }

Member Data Documentation

Definition at line 274 of file nsIClassicPluginFactory.idl.

Definition at line 273 of file nsIClassicPluginFactory.idl.

Definition at line 102 of file nsPIPluginHost.idl.

Definition at line 103 of file nsPIPluginHost.idl.

Definition at line 279 of file nsIClassicPluginFactory.idl.

Definition at line 272 of file nsIClassicPluginFactory.idl.

nsPluginPort * nsPluginWindow::window [inherited]

Definition at line 267 of file nsIClassicPluginFactory.idl.

Definition at line 270 of file nsIClassicPluginFactory.idl.

Definition at line 271 of file nsIClassicPluginFactory.idl.


The documentation for this class was generated from the following file: