/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
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...] |
V8NPObject.cpp | 68 // Params: holder could be HTMLEmbedElement or NPObject 71 NPObject* npObject; 88 npObject = v8ObjectToNPObject(wrapper->newLocal(isolate)); 90 npObject = 0; 92 // The holder object is not a subtype of HTMLPlugInElement, it must be an NPObject which has three 95 throwError(v8ReferenceError, "NPMethod called on non-NPObject", info.GetIsolate()); 99 npObject = v8ObjectToNPObject(info.Holder()); 102 // Verify that our wrapper wasn't using a NPObject which has already been deleted. 103 if (!npObject || !_NPN_IsAlive(npObject)) [all...] |
NPV8Object.cpp | 61 static NPObject* allocV8NPObject(NPP, NPClass*) 63 return static_cast<NPObject*>(malloc(sizeof(V8NPObject))); 66 static void freeV8NPObject(NPObject* npObject) 68 V8NPObject* v8NpObject = reinterpret_cast<V8NPObject*>(npObject); 69 disposeUnderlyingV8Object(npObject, v8::Isolate::GetCurrent()); 80 static v8::Local<v8::Context> toV8Context(NPP npp, NPObject* npObject) 82 ASSERT(npObject->_class == &V8NPObjectClass); 83 V8NPObject* object = reinterpret_cast<V8NPObject*>(npObject); [all...] |
npruntime.cpp | 266 NPObject *_NPN_CreateObject(NPP npp, NPClass* npClass) 271 NPObject* npObject; 273 npObject = npClass->allocate(npp, npClass); 275 npObject = reinterpret_cast<NPObject*>(malloc(sizeof(NPObject))); 277 npObject->_class = npClass; 278 npObject->referenceCount = 1; 279 return npObject; [all...] |
/external/chromium_org/content/child/npapi/ |
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_base.h | 14 struct NPObject; 22 // Returns the underlying NPObject handled by this NPObjectBase instance. 23 virtual NPObject* GetUnderlyingNPObject() = 0;
|
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_;
|
/external/chromium_org/content/renderer/pepper/ |
plugin_object.h | 14 typedef struct NPObject NPObject; 40 NPObject* GetNPObject() const; 46 static bool IsInstanceOf(NPObject* np_object, 50 // Converts the given NPObject to the corresponding ObjectVar. 52 // The given NPObject must be one corresponding to a PluginObject or this 56 static PluginObject* FromNPObject(NPObject* object); 58 // Allocates a plugin wrapper object and returns it as an NPObject. This is 60 static NPObject* AllocateObjectWrapper(); 66 // will set up the correct NPObject [all...] |
host_var_tracker_unittest.cc | 28 void TrackedClassDeallocate(NPObject* npobject) { 30 delete npobject; 48 // Returns a new tracked NPObject with a refcount of 1. You'll want to put this 50 NPObject* NewTrackedNPObject() { 51 NPObject* object = new NPObject; 61 void operator()(NPObject* o) const { 66 // Handles automatically releasing a reference to the NPObject on destruction. 68 typedef scoped_ptr_malloc<NPObject, ReleaseNPObject> NPObjectReleaser [all...] |
npobject_var.h | 15 typedef struct NPObject NPObject; 25 // reference. If two different modules reference the same NPObject (like the 33 // guarantees that we maintain the 1:1 mapping between NPObject and 35 NPObjectVar(PP_Instance instance, NPObject* np_object); 41 // Returns the underlying NPObject corresponding to this NPObjectVar. 43 NPObject* np_object() const { return np_object_; } 64 NPObject* np_object_;
|
/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...] |
/external/chromium_org/content/renderer/browser_plugin/ |
browser_plugin_bindings.h | 22 // BrowserPluginBindings instance. This way, we can use an NPObject to allow 24 // from NPObject. 25 struct BrowserPluginNPObject : public NPObject { 35 NPObject* np_object() const { return np_object_; } 47 bool SetProperty(NPObject* np_obj, 51 bool RemoveProperty(NPObject *np_obj, NPIdentifier name); 54 // The NPObject we use to expose postMessage to JavaScript.
|
/external/chromium_org/content/test/data/npapi/ |
npobject_lifetime_test_second_instance.html | 8 NPObject Lifetime test second plugin instance<p> 10 Tests the case where a plugin holds on to an NPObject reference 12 the npobject is callable when the frame is destroyed.
|
npobject_released_on_destruction.html | 18 // deallocate function will release the NPObject below. 34 NPObject released on destruction<p> 36 Tests that if a plugin creates an NPObject and releases it on destruction,
|
npobject_proxy.html | 14 NPObject Proxy Test<p> 16 Tests that if an NPObject is proxies back to its original process, the
|
/external/chromium_org/third_party/WebKit/Source/testing/plugin/ |
PluginTest.h | 78 bool NPN_Invoke(NPObject *, NPIdentifier methodName, const NPVariant *args, uint32_t argCount, NPVariant *result); 88 NPObject* NPN_CreateObject(NPClass*); 89 NPObject* NPN_RetainObject(NPObject*); 90 void NPN_ReleaseObject(NPObject*); 91 bool NPN_GetProperty(NPObject*, NPIdentifier propertyName, NPVariant* value); 92 bool NPN_RemoveProperty(NPObject*, NPIdentifier propertyName); 134 // NPObject helper template. 135 template<typename T> struct Object : NPObject { 137 static NPObject* create(PluginTest* pluginTest [all...] |
TestObject.cpp | 32 static bool testEnumerate(NPObject *npobj, NPIdentifier **value, uint32_t *count); 33 static bool testHasMethod(NPObject*, NPIdentifier name); 34 static bool testInvoke(NPObject*, NPIdentifier name, const NPVariant* args, uint32_t argCount, NPVariant* result); 35 static bool testHasProperty(NPObject*, NPIdentifier name); 36 static bool testGetProperty(NPObject*, NPIdentifier name, NPVariant*); 37 static NPObject *testAllocate(NPP npp, NPClass *theClass); 38 static void testDeallocate(NPObject *obj); 39 static bool testConstruct(NPObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result); 70 NPObject header; 71 NPObject* testObject [all...] |
/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/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...] |
/external/chromium_org/remoting/host/plugin/ |
host_plugin_utils.h | 31 NPObject* ObjectFromNPVariant(const NPVariant& variant); 38 explicit ScopedRefNPObject(NPObject* object); 44 ScopedRefNPObject& operator=(NPObject* object); 47 NPObject* get() const { return object_; } 50 NPObject* object_;
|
/external/chromium_org/third_party/WebKit/Source/web/ |
WebBindings.cpp | 57 bool WebBindings::construct(NPP npp, NPObject* object, const NPVariant* args, uint32_t argCount, NPVariant* result) 62 NPObject* WebBindings::createObject(NPP npp, NPClass* npClass) 67 bool WebBindings::enumerate(NPP npp, NPObject* object, NPIdentifier** identifier, uint32_t* identifierCount) 72 bool WebBindings::evaluate(NPP npp, NPObject* object, NPString* script, NPVariant* result) 77 bool WebBindings::evaluateHelper(NPP npp, bool popupsAllowed, NPObject* object, NPString* script, NPVariant* result) 87 bool WebBindings::getProperty(NPP npp, NPObject* object, NPIdentifier property, NPVariant* result) 102 bool WebBindings::hasMethod(NPP npp, NPObject* object, NPIdentifier method) 107 bool WebBindings::hasProperty(NPP npp, NPObject* object, NPIdentifier property) 127 bool WebBindings::invoke(NPP npp, NPObject* object, NPIdentifier method, const NPVariant* args, uint32_t argCount, NPVariant* result) 132 bool WebBindings::invokeDefault(NPP npp, NPObject* object, const NPVariant* args, uint32_t argCount, NPVariant* result [all...] |
/external/chromium/webkit/glue/ |
cpp_bound_class.cc | 8 // - Something calls our NPObject with a function like "Invoke". 65 // Our special NPObject type. We extend an NPObject with a pointer to a 66 // CppBoundClass, which is just a C++ interface that we forward all NPObject 69 NPObject parent; // This must be the first field in the struct. 74 // with NPObject/NPClass. 81 // Allocate a new NPObject with the specified class. 82 static NPObject* allocate(NPP npp, NPClass* aClass); 85 static void deallocate(NPObject* obj); 87 // Returns true if the C++ class associated with this NPObject exposes th [all...] |
/external/chromium_org/third_party/WebKit/Source/testing/runner/ |
CppBoundClass.cpp | 35 // - Something calls our NPObject with a function like "Invoke". 97 // Our special NPObject type. We extend an NPObject with a pointer to a 98 // CppBoundClass, which is just a C++ interface that we forward all NPObject 101 NPObject parent; // This must be the first field in the struct. 106 // with NPObject/NPClass. 113 // Allocate a new NPObject with the specified class. 114 static NPObject* allocate(NPP, NPClass*); 117 static void deallocate(NPObject*); 119 // Returns true if the C++ class associated with this NPObject exposes th [all...] |
/external/chromium_org/webkit/renderer/ |
cpp_bound_class.cc | 8 // - Something calls our NPObject with a function like "Invoke". 69 // Our special NPObject type. We extend an NPObject with a pointer to a 70 // CppBoundClass, which is just a C++ interface that we forward all NPObject 73 NPObject parent; // This must be the first field in the struct. 78 // with NPObject/NPClass. 85 // Allocate a new NPObject with the specified class. 86 static NPObject* allocate(NPP npp, NPClass* aClass); 89 static void deallocate(NPObject* obj); 91 // Returns true if the C++ class associated with this NPObject exposes th [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...] |