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

Gets the DOM Document contained in this window.

The document.

Reimplemented from FB::DOM::Window.

Definition at line 36 of file ActiveXCore/AXDOM/Window.cpp.

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

37 {
38  CComPtr<IHTMLDocument2> htmlDoc;
39  m_htmlWin->get_document(&htmlDoc);
40  CComQIPtr<IDispatch> htmlDocDisp(htmlDoc);
41  FB::JSObjectPtr docAPI(IDispatchAPI::create(htmlDocDisp, FB::ptr_cast<ActiveXBrowserHost>(this->m_element->getHost())));
42  return FB::DOM::Document::create(docAPI);
43 }
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: