Home
last modified time | relevance | path

Searched refs:npObject (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/bindings/v8/
DNPV8Object.cpp66 static void freeV8NPObject(NPObject* npObject) in freeV8NPObject() argument
68 V8NPObject* v8NpObject = reinterpret_cast<V8NPObject*>(npObject); in freeV8NPObject()
69 disposeUnderlyingV8Object(npObject, v8::Isolate::GetCurrent()); in freeV8NPObject()
80 static ScriptState* mainWorldScriptState(v8::Isolate* isolate, NPP npp, NPObject* npObject) in mainWorldScriptState() argument
82 ASSERT(npObject->_class == &V8NPObjectClass); in mainWorldScriptState()
83 V8NPObject* object = reinterpret_cast<V8NPObject*>(npObject); in mainWorldScriptState()
165 V8NPObject* npObjectToV8NPObject(NPObject* npObject) in npObjectToV8NPObject() argument
167 if (npObject->_class != &V8NPObjectClass) in npObjectToV8NPObject()
169 V8NPObject* v8NpObject = reinterpret_cast<V8NPObject*>(npObject); in npObjectToV8NPObject()
175 void disposeUnderlyingV8Object(NPObject* npObject, v8::Isolate* isolate) in disposeUnderlyingV8Object() argument
[all …]
Dnpruntime.cpp271 NPObject* npObject; in _NPN_CreateObject() local
273 npObject = npClass->allocate(npp, npClass); in _NPN_CreateObject()
275 npObject = reinterpret_cast<NPObject*>(malloc(sizeof(NPObject))); in _NPN_CreateObject()
277 npObject->_class = npClass; in _NPN_CreateObject()
278 npObject->referenceCount = 1; in _NPN_CreateObject()
279 return npObject; in _NPN_CreateObject()
285 NPObject* _NPN_RetainObject(NPObject* npObject) in _NPN_RetainObject() argument
287 ASSERT(npObject); in _NPN_RetainObject()
288 ASSERT(npObject->referenceCount > 0); in _NPN_RetainObject()
290 if (npObject) in _NPN_RetainObject()
[all …]
DV8NPObject.cpp72 NPObject* npObject; in npObjectInvokeImpl() local
86 npObject = v8ObjectToNPObject(wrapper->newLocal(isolate)); in npObjectInvokeImpl()
88 npObject = 0; in npObjectInvokeImpl()
97 npObject = v8ObjectToNPObject(info.Holder()); in npObjectInvokeImpl()
101 if (!npObject || !_NPN_IsAlive(npObject)) { in npObjectInvokeImpl()
111 convertV8ObjectToNPVariant(info[i], npObject, &npArgs[i], isolate); in npObjectInvokeImpl()
119 if (npObject->_class->invoke) { in npObjectInvokeImpl()
122 retval = npObject->_class->invoke(npObject, identifier, npArgs.get(), numArgs, &result); in npObjectInvokeImpl()
126 if (npObject->_class->construct) in npObjectInvokeImpl()
127 retval = npObject->_class->construct(npObject, npArgs.get(), numArgs, &result); in npObjectInvokeImpl()
[all …]
DScriptController.cpp291 NPObject* npObject = toPluginView(widget)->scriptableObject(); in createPluginWrapper() local
292 if (!npObject) in createPluginWrapper()
319 v8::Local<v8::Object> wrapper = createV8ObjectForNPObject(npObject, 0, m_isolate); in createPluginWrapper()
322 m_pluginObjects.set(widget, npObject); in createPluginWrapper()
/external/chromium_org/content/shell/tools/plugin/
DPluginTest.h233 static void NP_Deallocate(NPObject* npObject) { in NP_Deallocate()
234 delete static_cast<T*>(npObject); in NP_Deallocate()
237 static bool NP_HasMethod(NPObject* npObject, NPIdentifier methodName) { in NP_HasMethod()
238 return static_cast<T*>(npObject)->hasMethod(methodName); in NP_HasMethod()
241 static bool NP_Invoke(NPObject* npObject, in NP_Invoke()
246 return static_cast<T*>(npObject) in NP_Invoke()
250 static bool NP_InvokeDefault(NPObject* npObject, in NP_InvokeDefault()
254 return static_cast<T*>(npObject) in NP_InvokeDefault()
258 static bool NP_HasProperty(NPObject* npObject, NPIdentifier propertyName) { in NP_HasProperty()
259 return static_cast<T*>(npObject)->hasProperty(propertyName); in NP_HasProperty()
[all …]
DPluginTest.cpp194 NPObject* PluginTest::NPN_RetainObject(NPObject* npObject) { in NPN_RetainObject() argument
195 return browser->retainobject(npObject); in NPN_RetainObject()
198 void PluginTest::NPN_ReleaseObject(NPObject* npObject) { in NPN_ReleaseObject() argument
199 browser->releaseobject(npObject); in NPN_ReleaseObject()
202 bool PluginTest::NPN_GetProperty(NPObject* npObject, in NPN_GetProperty() argument
205 return browser->getproperty(m_npp, npObject, propertyName, value); in NPN_GetProperty()
208 bool PluginTest::NPN_RemoveProperty(NPObject* npObject, in NPN_RemoveProperty() argument
210 return browser->removeproperty(m_npp, npObject, propertyName); in NPN_RemoveProperty()