FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FB::DOM::ElementPtr FB::Npapi::NpapiBrowserHost::getDOMElement ( )
virtual

Gets a DOM::Element wrapper for the DOM/JS object tag that the plugin resides in.

Returns
The dom element.
See Also
DOM::Element

Implements FB::BrowserHost.

Definition at line 172 of file NpapiBrowserHost.cpp.

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

173 {
174  if (!m_htmlElement)
175  throw std::runtime_error("Cannot find HTML window");
176 
177  return FB::DOM::Element::create(m_htmlElement);
178 }
static ElementPtr create(const FB::JSObjectPtr &api)
Creates a FB::DOM::Element object from a JSObjectPtr representing a DOM object. This will probably th...

Here is the call graph for this function: