Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsPluginNativeWindow.cpp File Reference
#include "nsDebug.h"
#include "nsPluginNativeWindow.h"

Go to the source code of this file.

Classes

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

Functions

nsresult PLUG_NewPluginNativeWindow (nsPluginNativeWindow **aPluginNativeWindow)
nsresult PLUG_DeletePluginNativeWindow (nsPluginNativeWindow *aPluginNativeWindow)

Function Documentation

Definition at line 82 of file nsPluginNativeWindow.cpp.

{
  NS_ENSURE_ARG_POINTER(aPluginNativeWindow);
  nsPluginNativeWindowPLATFORM *p = (nsPluginNativeWindowPLATFORM *)aPluginNativeWindow;
  delete p;
  return NS_OK;
}

Definition at line 75 of file nsPluginNativeWindow.cpp.

{
  NS_ENSURE_ARG_POINTER(aPluginNativeWindow);
  *aPluginNativeWindow = new nsPluginNativeWindowPLATFORM();
  return *aPluginNativeWindow ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}