FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
WindowPtr FB::DOM::Document::getWindow ( ) const

Gets a DOM::WindowPtr for the window the document is contained in.

The window.

Reimplemented in FB::ActiveX::AXDOM::Document.

Definition at line 32 of file ScriptingCore/DOM/Document.cpp.

33 {
34  JSObjectPtr api = getProperty<FB::JSObjectPtr>("window");
35  return Window::create(api);
36 }
boost::shared_ptr< FB::JSObject > JSObjectPtr
Defines an alias representing a JSObject shared_ptr (you should never use a JSObject* directly) ...
Definition: APITypes.h:109
static WindowPtr create(const FB::JSObjectPtr &api)
Creates a FB::DOM::Window object from a JSObjectPtr representing a DOM object. This will probably thr...