FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
FB::JSAPIProxyPtr FB::JSAPIProxy::create ( const SecurityZone securityLevel,
const FB::JSAPIWeakPtr 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 53 of file JSAPIProxy.cpp.

54 {
55  // This is necessary because you can't use shared_from_this in the constructor
56  FB::JSAPIProxyPtr ptr(new FB::JSAPIProxy(securityLevel, inner));
57  FB::JSAPIImplPtr impl(FB::ptr_cast<JSAPIImpl>(inner.lock()));
58  if (impl)
59  impl->registerProxy(ptr);
60 
61  return ptr;
62 }
JavaScript API Wrapper – this can wrap any type of JSAPI object and be passed back to any browser tha...
Definition: JSAPIProxy.h:45