FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FB::JSAPIPtr NPObjectAPI::getJSAPI ( ) const
virtual

Get associated FB::JSAPI.

Implements FB::JSObject.

Definition at line 432 of file NPObjectAPI.cpp.

433 {
434  if (!obj) {
435  return JSAPIPtr();
436  }
437 
438  if (!NPJavascriptObject::isNPJavaScriptObject(obj)) {
439  return JSAPIPtr();
440  }
441 
442  return static_cast<NPJavascriptObject*>(obj)->getAPI();
443 }
boost::shared_ptr< FB::JSAPI > JSAPIPtr
Defines an alias for a JSAPI shared_ptr (you should never use a JSAPI* directly)
Definition: APITypes.h:94