FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FB::JSAPIProxyPtr FB::JSAPIProxy::create ( const SecurityZone securityLevel,
const FB::JSAPIPtr inner 
)
static

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 42 of file JSAPIProxy.cpp.

43 {
44  // This is necessary because you can't use shared_from_this in the constructor
45  FB::JSAPIProxyPtr ptr(new FB::JSAPIProxy(securityLevel, inner));
46  FB::JSAPIImplPtr impl(FB::ptr_cast<JSAPIImpl>(ptr));
47  if (impl)
48  impl->registerProxy(ptr);
49 
50  return ptr;
51 }
JavaScript API Wrapper – this can wrap any type of JSAPI object and be passed back to any browser tha...
Definition: JSAPIProxy.h:45