FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FB::DOM::DocumentPtr NpapiBrowserHost::getDOMDocument ( )
virtual

Gets a DOM::Document wrapper for the document object that the plugin resides in.

Returns
The dom document.
See Also
DOM::Document

Implements FB::BrowserHost.

Definition at line 156 of file NpapiBrowserHost.cpp.

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

157 {
158  if (!m_htmlDoc)
159  throw std::runtime_error("Cannot find HTML document");
160 
161  return FB::DOM::Document::create(m_htmlDoc);
162 }
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: