FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
DocumentPtr FB::DOM::Window::getDocument ( ) const
virtual

Gets the DOM Document contained in this window.

Returns
The document.

Reimplemented in FB::ActiveX::AXDOM::Window.

Definition at line 33 of file ScriptingCore/DOM/Window.cpp.

References FB::DOM::Document::create().

34 {
35  JSObjectPtr api = getProperty<JSObjectPtr>("document");
36  return Document::create(api);
37 }
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 DocumentPtr create(const FB::JSObjectPtr &api)
Creates a FB::DOM::Document object from a JSObjectPtr representing a DOM object. This will probably t...

Here is the call graph for this function: