NPObjectProxy* NPObjectProxy::create(NPRemoteObjectMap* npRemoteObjectMap, Plugin* plugin, uint64_t npObjectID) { NPObjectProxy* npObjectProxy = toNPObjectProxy(createNPObject(0, npClass())); npObjectProxy->initialize(npRemoteObjectMap, plugin, npObjectID); return npObjectProxy; }
NPJSObject* NPJSObject::create(JSGlobalData& globalData, NPRuntimeObjectMap* objectMap, JSObject* jsObject) { // We should never have a JSNPObject inside an NPJSObject. ASSERT(!jsObject->inherits(&JSNPObject::s_info)); NPJSObject* npJSObject = toNPJSObject(createNPObject(0, npClass())); npJSObject->initialize(globalData, objectMap, jsObject); return npJSObject; }
NPJSObject* NPJSObject::create(VM& vm, NPRuntimeObjectMap* objectMap, JSObject* jsObject) { // We should never have a JSNPObject inside an NPJSObject. ASSERT(!jsObject->inherits(JSNPObject::info())); NPJSObject* npJSObject = toNPJSObject(createNPObject(0, npClass())); npJSObject->initialize(vm, objectMap, jsObject); return npJSObject; }
bool NPObjectProxy::isNPObjectProxy(NPObject* npObject) { return npObject->_class == npClass(); }
bool NPJSObject::isNPJSObject(NPObject* npObject) { return npObject->_class == npClass(); }