NPJavascriptObject *NPJavascriptObject::NewObject(NpapiBrowserHostPtr host, FB::JSAPIWeakPtr api) { NPJavascriptObject *obj = static_cast<NPJavascriptObject *>(host->CreateObject(&NPJavascriptObjectClass)); obj->setAPI(api, host); return obj; }
NPJavascriptObject *NPJavascriptObject::NewObject(NpapiBrowserHostPtr host, FB::JSAPIWeakPtr api, bool auto_release/* = false*/) { NPJavascriptObject *obj = static_cast<NPJavascriptObject *>(host->CreateObject(&NPJavascriptObjectClass)); obj->setAPI(api, host); obj->m_autoRelease = auto_release; return obj; }
bool NPJavascriptObject::_Construct(NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result) { NPJavascriptObject *obj = static_cast<NPJavascriptObject *>(npobj); return obj->Construct(args, argCount, result); }
bool NPJavascriptObject::_Enumeration(NPObject *npobj, NPIdentifier **value, uint32_t *count) { NPJavascriptObject *obj = static_cast<NPJavascriptObject *>(npobj); return obj->Enumeration(value, count); }
bool NPJavascriptObject::_RemoveProperty(NPObject *npobj, NPIdentifier name) { NPJavascriptObject *obj = static_cast<NPJavascriptObject *>(npobj); return obj->RemoveProperty(name); }
bool NPJavascriptObject::_SetProperty(NPObject *npobj, NPIdentifier name, const NPVariant *value) { NPJavascriptObject *obj = static_cast<NPJavascriptObject *>(npobj); return obj->SetProperty(name, value); }
bool NPJavascriptObject::_GetProperty(NPObject *npobj, NPIdentifier name, NPVariant *result) { NPJavascriptObject *obj = static_cast<NPJavascriptObject *>(npobj); return obj->GetProperty(name, result); }
bool NPJavascriptObject::_Invoke(NPObject *npobj, NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result) { NPJavascriptObject *obj = static_cast<NPJavascriptObject *>(npobj); return obj->Invoke(name, args, argCount, result); }
bool NPJavascriptObject::_HasMethod(NPObject *npobj, NPIdentifier name) { NPJavascriptObject *obj = static_cast<NPJavascriptObject *>(npobj); return obj->HasMethod(name); }
void NPJavascriptObject::_Invalidate(NPObject *npobj) { NPJavascriptObject *obj = static_cast<NPJavascriptObject *>(npobj); obj->Invalidate(); }