Page tree
Skip to end of metadata
Go to start of metadata

static WindowPtr FB::DOM::Window::create ( const FB::JSObjectPtr api)

Creates a FB::DOM::Window object from a JSObjectPtr representing a DOM object. This will probably throw an exception and definitely not work right if the DOM object represented is not a window.

apiThe FB::JSObjectAPI object containing the window to wrap
WindowPtr of the new Window

Definition at line 95 of file ScriptingCore/DOM/Window.h.

Referenced by FB::Npapi::NpapiBrowserHost::getDOMWindow(), and FB::ActiveX::AXDOM::Document::getWindow().

95  {
96  if (!api) { return WindowPtr(); }
97  return api->getHost()->_createWindow(api);
98  }
boost::shared_ptr< Window > WindowPtr
shared_ptr for a FB::DOM::Window
  • No labels