Home
last modified time | relevance | path

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

/external/chromium_org/third_party/WebKit/Source/bindings/v8/
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 …]
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 v8::Local<v8::Context> toV8Context(NPP npp, NPObject* npObject) in toV8Context() argument
82 ASSERT(npObject->_class == &V8NPObjectClass); in toV8Context()
83 V8NPObject* object = reinterpret_cast<V8NPObject*>(npObject); in toV8Context()
163 V8NPObject* npObjectToV8NPObject(NPObject* npObject) in npObjectToV8NPObject() argument
165 if (npObject->_class != &V8NPObjectClass) in npObjectToV8NPObject()
167 V8NPObject* v8NpObject = reinterpret_cast<V8NPObject*>(npObject); in npObjectToV8NPObject()
173 void disposeUnderlyingV8Object(NPObject* npObject, v8::Isolate* isolate) in disposeUnderlyingV8Object() argument
[all …]
DV8NPObject.cpp71 NPObject* npObject; in npObjectInvokeImpl() local
88 npObject = v8ObjectToNPObject(wrapper->newLocal(isolate)); in npObjectInvokeImpl()
90 npObject = 0; in npObjectInvokeImpl()
99 npObject = v8ObjectToNPObject(info.Holder()); in npObjectInvokeImpl()
103 if (!npObject || !_NPN_IsAlive(npObject)) { in npObjectInvokeImpl()
113 convertV8ObjectToNPVariant(info[i], npObject, &npArgs[i], info.GetIsolate()); in npObjectInvokeImpl()
121 if (npObject->_class->invoke) { in npObjectInvokeImpl()
124 retval = npObject->_class->invoke(npObject, identifier, npArgs.get(), numArgs, &result); in npObjectInvokeImpl()
128 if (npObject->_class->construct) in npObjectInvokeImpl()
129 retval = npObject->_class->construct(npObject, npArgs.get(), numArgs, &result); in npObjectInvokeImpl()
[all …]
DScriptController.cpp364 NPObject* npObject = toPluginView(widget)->scriptableObject(); in createPluginWrapper() local
365 if (!npObject) in createPluginWrapper()
392 v8::Local<v8::Object> wrapper = createV8ObjectForNPObject(npObject, 0, m_isolate); in createPluginWrapper()
395 m_pluginObjects.set(widget, npObject); in createPluginWrapper()
/external/chromium_org/third_party/WebKit/Source/testing/plugin/
DPluginTest.h206 static void NP_Deallocate(NPObject* npObject) in NP_Deallocate()
208 delete static_cast<T*>(npObject); in NP_Deallocate()
211 static bool NP_HasMethod(NPObject* npObject, NPIdentifier methodName) in NP_HasMethod()
213 return static_cast<T*>(npObject)->hasMethod(methodName); in NP_HasMethod()
216 …static bool NP_Invoke(NPObject* npObject, NPIdentifier methodName, const NPVariant* arguments, uin… in NP_Invoke()
218 return static_cast<T*>(npObject)->invoke(methodName, arguments, argumentCount, result); in NP_Invoke()
221 …static bool NP_InvokeDefault(NPObject* npObject, const NPVariant* arguments, uint32_t argumentCoun… in NP_InvokeDefault()
223 return static_cast<T*>(npObject)->invokeDefault(arguments, argumentCount, result); in NP_InvokeDefault()
226 static bool NP_HasProperty(NPObject* npObject, NPIdentifier propertyName) in NP_HasProperty()
228 return static_cast<T*>(npObject)->hasProperty(propertyName); in NP_HasProperty()
[all …]
DPluginTest.cpp210 NPObject* PluginTest::NPN_RetainObject(NPObject* npObject) in NPN_RetainObject() argument
212 return browser->retainobject(npObject); in NPN_RetainObject()
215 void PluginTest::NPN_ReleaseObject(NPObject* npObject) in NPN_ReleaseObject() argument
217 browser->releaseobject(npObject); in NPN_ReleaseObject()
220 bool PluginTest::NPN_GetProperty(NPObject* npObject, NPIdentifier propertyName, NPVariant* value) in NPN_GetProperty() argument
222 return browser->getproperty(m_npp, npObject, propertyName, value); in NPN_GetProperty()
225 bool PluginTest::NPN_RemoveProperty(NPObject* npObject, NPIdentifier propertyName) in NPN_RemoveProperty() argument
227 return browser->removeproperty(m_npp, npObject, propertyName); in NPN_RemoveProperty()
/external/chromium_org/third_party/WebKit/Source/testing/runner/
DCppVariant.cpp302 NPObject* npObject = value.objectValue; in invoke() local
303 if (!WebBindings::hasMethod(0, npObject, methodName)) in invoke()
306 bool status = WebBindings::invoke(0, npObject, methodName, arguments, argumentCount, &r); in invoke()
315 NPObject* npObject = value.objectValue; in invokeDefault() local
317 bool status = WebBindings::invokeDefault(0, npObject, arguments, argumentCount, &r); in invokeDefault()