/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/ |
npruntime_priv.h | 40 void _NPN_DeallocateObject(NPObject*); 58 // We generally associate NPObjects with an owner. The owner of an NPObject 59 // is an NPObject which, when destroyed, also destroys all objects it owns. 74 // Register an NPObject with the runtime. If the owner is NULL, the 77 void _NPN_RegisterObject(NPObject*, NPObject* owner); 79 // Unregister an NPObject with the runtime. If obj is an owning 81 void _NPN_UnregisterObject(NPObject*); 85 bool _NPN_IsAlive(NPObject*);
|
npruntime_impl.h | 50 NPObject *_NPN_CreateObject(NPP, NPClass*); 51 NPObject* _NPN_RetainObject(NPObject*); 52 void _NPN_ReleaseObject(NPObject*); 53 bool _NPN_Invoke(NPP, NPObject*, NPIdentifier methodName, const NPVariant* arguments, uint32_t argumentCount, NPVariant* result); 54 bool _NPN_InvokeDefault(NPP, NPObject*, const NPVariant* arguments, uint32_t argumentCount, NPVariant* result); 55 bool _NPN_Evaluate(NPP, NPObject*, NPString* npScript, NPVariant* result); 56 bool _NPN_EvaluateHelper(NPP, bool popupsAllowed, NPObject*, NPString* npScript, NPVariant* result); 57 bool _NPN_GetProperty(NPP, NPObject*, NPIdentifier propertyName, NPVariant* result); 58 bool _NPN_SetProperty(NPP, NPObject*, NPIdentifier propertyName, const NPVariant* value) [all...] |
NPV8Object.h | 50 // A V8NPObject is a NPObject which carries additional V8-specific information. 56 NPObject object; 69 NPObject* npCreateV8ScriptObject(NPP, v8::Handle<v8::Object>, LocalDOMWindow*, v8::Isolate*); 71 NPObject* v8ObjectToNPObject(v8::Handle<v8::Object>); 75 V8NPObject* npObjectToV8NPObject(NPObject*); 77 ScriptWrappableBase* npObjectToScriptWrappableBase(NPObject*); 79 void disposeUnderlyingV8Object(NPObject*, v8::Isolate*);
|
V8NPUtils.h | 39 void convertV8ObjectToNPVariant(v8::Local<v8::Value>, NPObject*, NPVariant*, v8::Isolate*); 41 // Convert a NPVariant (string, bool, object, etc) back to a V8 Value. The owner object is the NPObject which relates to the 42 // object, if the object is an Object. The created NPObject will be tied to the lifetime of the owner. 43 v8::Handle<v8::Value> convertNPVariantToV8Object(const NPVariant*, NPObject*, v8::Isolate*); 49 // operating on a NPObject.
|
V8NPObject.h | 36 struct NPObject; 55 // Get a wrapper for a NPObject. 58 v8::Local<v8::Object> createV8ObjectForNPObject(NPObject*, NPObject* root, v8::Isolate*); 62 // function, the persistent handle to the wrapper will be gone, and the wrapped NPObject will be removed so that it 64 void forgetV8ObjectForNPObject(NPObject*);
|
ScriptController.h | 45 struct NPObject; 111 void bindToWindowObject(LocalFrame*, const String& key, NPObject*); 139 NPObject* createScriptObjectForPluginElement(HTMLPlugInElement*); 140 NPObject* windowScriptNPObject(); 154 typedef HashMap<Widget*, NPObject*> PluginObjectMap; 168 // The frame keeps a NPObject reference for each item on the list. 171 NPObject* m_windowScriptNPObject;
|
/external/chromium_org/content/child/npapi/ |
npobject_base.h | 14 struct NPObject; 22 // Returns the underlying NPObject handled by this NPObjectBase instance. 23 virtual NPObject* GetUnderlyingNPObject() = 0;
|
npobject_proxy.h | 5 // A proxy for NPObject that sends all calls to the object to an NPObjectStub 19 struct NPObject; 26 // as a plugin can get an NPObject for the window, and a page can get an 27 // NPObject for the plugin. In the process that interacts with the NPobject we 30 // side translates the IPC messages into calls to the actual NPObject, and 38 static NPObject* Create(NPChannelBase* channel, 50 static bool NPHasMethod(NPObject *obj, 52 static bool NPInvoke(NPObject *obj, 57 static bool NPInvokeDefault(NPObject *npobj [all...] |
npobject_stub.h | 6 // NPObject. 20 struct NPObject; 27 // This wraps an NPObject and converts IPC messages from NPObjectProxy to calls 35 NPObjectStub(NPObject* npobject, 42 // Schedules tear-down of this stub. The underlying NPObject reference is 53 virtual NPObject* GetUnderlyingNPObject() OVERRIDE; 88 NPObject* npobject_;
|
np_channel_base.h | 28 struct hash<NPObject*> { 29 std::size_t operator()(NPObject* const& ptr) const { 46 inline size_t hash_value(NPObject* const& ptr) { 64 // npobject). These are also called by NPObjectProxy and NPObjectStub (which 65 // pass themselves for npobject). However the latter don't control the 66 // lifetime of this object because we don't want a leak of an NPObject to 68 void AddRoute(int route_id, IPC::Listener* listener, NPObjectBase* npobject); 71 void AddMappingForNPObjectProxy(int route_id, NPObject* object); 74 void AddMappingForNPObjectStub(int route_id, NPObject* object); 75 void RemoveMappingForNPObjectStub(int route_id, NPObject* object) [all...] |
webplugin.h | 22 struct NPObject; 55 // Returns the NPObject for the browser's window object. Does not 57 virtual NPObject* GetWindowScriptNPObject() = 0; 61 virtual NPObject* GetPluginElement() = 0;
|
/external/chromium_org/third_party/WebKit/public/web/ |
WebBindings.h | 61 BLINK_EXPORT static bool construct(NPP, NPObject*, const NPVariant* args, uint32_t argCount, NPVariant* result); 64 BLINK_EXPORT static NPObject* createObject(NPP, NPClass*); 67 BLINK_EXPORT static bool enumerate(NPP, NPObject*, NPIdentifier**, uint32_t* identifierCount); 70 BLINK_EXPORT static bool evaluate(NPP, NPObject*, NPString* script, NPVariant* result); 73 BLINK_EXPORT static bool evaluateHelper(NPP, bool popupsAllowed, NPObject*, NPString* script, NPVariant* result); 79 BLINK_EXPORT static bool getProperty(NPP, NPObject*, NPIdentifier property, NPVariant *result); 88 BLINK_EXPORT static bool hasMethod(NPP, NPObject*, NPIdentifier method); 91 BLINK_EXPORT static bool hasProperty(NPP, NPObject*, NPIdentifier property); 103 BLINK_EXPORT static bool invoke(NPP, NPObject*, NPIdentifier method, const NPVariant* args, uint32_t argCount, NPVariant* result); 106 BLINK_EXPORT static bool invokeDefault(NPP, NPObject*, const NPVariant* args, uint32_t argCount, NPVariant* result) [all...] |
WebPluginContainer.h | 38 struct NPObject; 83 virtual NPObject* scriptableObjectForElement() = 0;
|
/external/chromium_org/third_party/npapi/bindings/ |
npruntime.h | 82 always wrapped in an NPObject. The 'interface' of an NPObject is 85 typedef struct NPObject NPObject; 111 NPObject *objectValue; 245 NPObject behavior is implemented using the following set of 251 typedef NPObject *(*NPAllocateFunctionPtr)(NPP npp, NPClass *aClass); 252 typedef void (*NPDeallocateFunctionPtr)(NPObject *npobj); 253 typedef void (*NPInvalidateFunctionPtr)(NPObject *npobj); 254 typedef bool (*NPHasMethodFunctionPtr)(NPObject *npobj, NPIdentifier name) [all...] |
/external/chromium_org/content/shell/tools/plugin/ |
TestObject.cpp | 37 static bool testEnumerate(NPObject* npobj, 40 static bool testHasMethod(NPObject*, NPIdentifier name); 41 static bool testInvoke(NPObject*, 46 static bool testHasProperty(NPObject*, NPIdentifier name); 47 static bool testGetProperty(NPObject*, NPIdentifier name, NPVariant*); 48 static NPObject* testAllocate(NPP npp, NPClass* theClass); 49 static void testDeallocate(NPObject* obj); 50 static bool testConstruct(NPObject* obj, 65 NPObject header; 66 NPObject* testObject [all...] |
PluginTest.h | 107 bool NPN_Invoke(NPObject*, 121 NPObject* NPN_CreateObject(NPClass*); 122 NPObject* NPN_RetainObject(NPObject*); 123 void NPN_ReleaseObject(NPObject*); 124 bool NPN_GetProperty(NPObject*, NPIdentifier propertyName, NPVariant* value); 125 bool NPN_RemoveProperty(NPObject*, NPIdentifier propertyName); 172 // NPObject helper template. 174 struct Object : NPObject { 176 static NPObject* create(PluginTest* pluginTest) [all...] |
/external/chromium_org/third_party/npapi/npspy/extern/plugin/ |
npruntime.h | 45 * pointers instead of NPObject pointers. 110 always wrapped in an NPObject. The 'interface' of an NPObject is 113 typedef struct NPObject NPObject; 139 NPObject *objectValue; 271 NPObject behavior is implemented using the following set of 277 typedef NPObject *(*NPAllocateFunctionPtr)(NPP npp, NPClass *aClass); 278 typedef void (*NPDeallocateFunctionPtr)(NPObject *npobj); 279 typedef void (*NPInvalidateFunctionPtr)(NPObject *npobj) [all...] |
/external/chromium_org/content/test/plugin/ |
plugin_npobject_identity_test.cc | 12 class NPThingy : public NPObject { 14 NPThingy() : NPObject() {} 16 static NPObject* Allocate(NPP npp, NPClass* npclass) { 20 static void Deallocate(NPObject* npobject) { 21 delete static_cast<NPThingy*>(npobject); 62 NPObject* window; 66 NPObject* func = NPVARIANT_TO_OBJECT(func_var); 68 // Create a custom NPObject and pass it in both arguments to areTheseTheSame. 69 NPObject* thingy = HostFunctions()->createobject(id(), GetNPThingyClass()) [all...] |
plugin_delete_plugin_in_deallocate_test.h | 14 // NPObject's deallocation, and the page tears down the plugin, then that 26 NPObject* npobject_;
|
plugin_delete_plugin_in_deallocate_test.cc | 14 class DeletePluginInDeallocateTestNPObject : public NPObject { 17 : NPObject(), id_(NULL), host_functions_(NULL), deallocate_count_(0) {} 19 static NPObject* Allocate(NPP npp, NPClass* npclass) { 23 static void Deallocate(NPObject* npobject) { 25 reinterpret_cast<DeletePluginInDeallocateTestNPObject*>(npobject); 32 NPObject* window_obj = NULL; 90 // Create a custom NPObject and give our Id and the Netscape function table. 99 NPObject* window = NULL; 109 NPObject* func = NPVARIANT_TO_OBJECT(func_var) [all...] |
plugin_npobject_proxy_test.cc | 27 NPObject *window_obj = NULL; 31 NPObject *doc = NPVARIANT_TO_OBJECT(docv);
|
/external/chromium_org/third_party/WebKit/Source/web/ |
WebBindings.cpp | 56 bool WebBindings::construct(NPP npp, NPObject* object, const NPVariant* args, uint32_t argCount, NPVariant* result) 61 NPObject* WebBindings::createObject(NPP npp, NPClass* npClass) 66 bool WebBindings::enumerate(NPP npp, NPObject* object, NPIdentifier** identifier, uint32_t* identifierCount) 71 bool WebBindings::evaluate(NPP npp, NPObject* object, NPString* script, NPVariant* result) 76 bool WebBindings::evaluateHelper(NPP npp, bool popupsAllowed, NPObject* object, NPString* script, NPVariant* result) 86 bool WebBindings::getProperty(NPP npp, NPObject* object, NPIdentifier property, NPVariant* result) 101 bool WebBindings::hasMethod(NPP npp, NPObject* object, NPIdentifier method) 106 bool WebBindings::hasProperty(NPP npp, NPObject* object, NPIdentifier property) 126 bool WebBindings::invoke(NPP npp, NPObject* object, NPIdentifier method, const NPVariant* args, uint32_t argCount, NPVariant* result) 131 bool WebBindings::invokeDefault(NPP npp, NPObject* object, const NPVariant* args, uint32_t argCount, NPVariant* result [all...] |
/external/chromium_org/content/shell/tools/plugin/Tests/ |
PluginScriptableNPObjectInvokeDefault.cpp | 59 NPObject* object; 60 if (identifier() == "plugin-scriptable-npobject-invoke-default") 65 *(NPObject**)value = object; 71 static PluginTest::Register<PluginScriptableNPObjectInvokeDefault> pluginScriptableNPObjectInvokeDefault("plugin-scriptable-npobject-invoke-default"); 72 static PluginTest::Register<PluginScriptableNPObjectInvokeDefault> pluginScriptableNPObjectNoInvokeDefault("plugin-scriptable-npobject-no-invoke-default");
|
NPDeallocateCalledBeforeNPShutdown.cpp | 67 NPObject* testObject = TestObject::create(pluginTest()); 89 *(NPObject**)value = ScriptableObject::create(this);
|
NPRuntimeObjectFromDestroyedPlugin.cpp | 74 NPObject* testObject = TestObject::create(pluginTest()); 85 *(NPObject**)value = ScriptableObject::create(this);
|