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

Gets a DOM::Window wrapper for the DOM/JS window object that the plugin resides in.

Returns
The dom window.
See Also
DOM::Window

Implements FB::BrowserHost.

Definition at line 164 of file NpapiBrowserHost.cpp.

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

165 {
166  if (!m_htmlWin)
167  throw std::runtime_error("Cannot find HTML window");
168 
169  return FB::DOM::Window::create(m_htmlWin);
170 }
static WindowPtr create(const FB::JSObjectPtr &api)
Creates a FB::DOM::Window object from a JSObjectPtr representing a DOM object. This will probably thr...

Here is the call graph for this function: