FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
JSAPIPtr FB::PluginCore::getRootJSAPI ( )

Gets the root JSAPI object. It is not recommended to call this from the constructor or before setHost is called, as many JSAPI objects need the BrowserHost and a weak_ptr to the Plugin class to function correctly.

The root jsapi.

Definition at line 263 of file PluginCore.h.

References createJSAPI().

Referenced by setReady().

264  {
265  if (!m_api) {
266  m_api = createJSAPI();
267  }
269  return m_api;
270  }
virtual JSAPIPtr createJSAPI()=0
Called the first time something calls getRootJSAPI() to get the Root JSAPI instance.
Definition: PluginCore.h:222

Here is the call graph for this function: