FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
static WindowPtr FB::DOM::Window::create ( const FB::JSObjectPtr api)
inlinestatic

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.

Parameters
apiThe FB::JSObjectAPI object containing the window to wrap
Returns
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