Back to index

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

This file is the default implementation of plugin native window empty stubs, it should be replaced with real platform implementation for every platform. More...

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

List of all members.

Public Member Functions

 nsPluginNativeWindowPLATFORM ()
virtual ~nsPluginNativeWindowPLATFORM ()
nsresult GetPluginInstance (nsCOMPtr< nsIPluginInstance > &aPluginInstance)
 !!! CAUTION !!!
nsresult GetPluginInstance (nsCOMPtr< nsIPluginInstance > &aPluginInstance)
 !!! CAUTION !!!
nsresult SetPluginInstance (nsIPluginInstance *aPluginInstance)
nsresult SetPluginInstance (nsIPluginInstance *aPluginInstance)
nsresult GetPluginWidget (nsIWidget **aWidget)
nsresult GetPluginWidget (nsIWidget **aWidget)
nsresult SetPluginWidget (nsIWidget *aWidget)
nsresult SetPluginWidget (nsIWidget *aWidget)
virtual nsresult CallSetWindow (nsCOMPtr< nsIPluginInstance > &aPluginInstance)
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

This file is the default implementation of plugin native window empty stubs, it should be replaced with real platform implementation for every platform.

Definition at line 50 of file nsPluginNativeWindow.cpp.


Constructor & Destructor Documentation

Definition at line 56 of file nsPluginNativeWindow.cpp.

                                                           : nsPluginNativeWindow()
{
  // initialize the struct fields
  window = nsnull; 
  x = 0; 
  y = 0; 
  width = 0; 
  height = 0; 
  memset(&clipRect, 0, sizeof(clipRect));
#if defined(XP_UNIX) && !defined(XP_MACOSX)
  ws_info = nsnull;
#endif
  type = nsPluginWindowType_Window;
}

Here is the call graph for this function:

Definition at line 71 of file nsPluginNativeWindow.cpp.

{
}

Member Function Documentation

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

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, inherited]

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:

nsresult nsPluginNativeWindow::GetPluginInstance ( nsCOMPtr< nsIPluginInstance > &  aPluginInstance) [inline, inherited]

!!! 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;
  }
nsresult nsPluginNativeWindow::GetPluginInstance ( nsCOMPtr< nsIPluginInstance > &  aPluginInstance) [inline, inherited]

!!! 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:

nsresult nsPluginNativeWindow::GetPluginWidget ( nsIWidget **  aWidget) [inline, inherited]

Definition at line 80 of file nsPIPluginHost.idl.

Here is the caller graph for this function:

nsresult nsPluginNativeWindow::GetPluginWidget ( nsIWidget **  aWidget) [inline, inherited]

Definition at line 80 of file nsPluginNativeWindow.h.

                                                {
    NS_IF_ADDREF(*aWidget = mWidget);
    return NS_OK;
  }
nsresult nsPluginNativeWindow::SetPluginInstance ( nsIPluginInstance aPluginInstance) [inline, inherited]

Definition at line 74 of file nsPluginNativeWindow.h.

                                                                 { 
    if (mPluginInstance != aPluginInstance)
      mPluginInstance = aPluginInstance;
    return NS_OK;
  }
nsresult nsPluginNativeWindow::SetPluginInstance ( nsIPluginInstance aPluginInstance) [inline, inherited]

Definition at line 74 of file nsPIPluginHost.idl.

Here is the caller graph for this function:

nsresult nsPluginNativeWindow::SetPluginWidget ( nsIWidget aWidget) [inline, inherited]

Definition at line 84 of file nsPluginNativeWindow.h.

                                               { 
    mWidget = aWidget;
    return NS_OK;
  }
nsresult nsPluginNativeWindow::SetPluginWidget ( nsIWidget aWidget) [inline, inherited]

Definition at line 84 of file nsPIPluginHost.idl.

Here is the caller graph for this function:


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: