HomeSort by relevance Sort by last modified time
    Searched full:npobject (Results 1 - 25 of 141) sorted by null

1 2 3 4 5 6

  /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 69 // Params: holder could be HTMLEmbedElement or NPObject
72 NPObject* npObject;
86 npObject = v8ObjectToNPObject(wrapper->newLocal(isolate));
88 npObject = 0;
90 // The holder object is not a subtype of HTMLPlugInElement, it must be an NPObject which has three
93 throwError(v8ReferenceError, "NPMethod called on non-NPObject", info.GetIsolate());
97 npObject = v8ObjectToNPObject(info.Holder());
100 // Verify that our wrapper wasn't using a NPObject which has already been deleted.
101 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 ScriptState* mainWorldScriptState(v8::Isolate* isolate, 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;
42 NPObject* GetNPObject() const;
48 static bool IsInstanceOf(NPObject* np_object,
52 // Converts the given NPObject to the corresponding ObjectVar.
54 // The given NPObject must be one corresponding to a PluginObject or this
58 static PluginObject* FromNPObject(NPObject* object);
60 // Allocates a plugin wrapper object and returns it as an NPObject. This is
62 static NPObject* AllocateObjectWrapper();
68 // will set up the correct NPObject
    [all...]
host_var_tracker_unittest.cc 28 void TrackedClassDeallocate(NPObject* npobject) {
30 delete npobject;
37 // Returns a new tracked NPObject with a refcount of 1. You'll want to put this
39 NPObject* NewTrackedNPObject() {
40 NPObject* object = new NPObject;
49 void operator()(NPObject* o) const { blink::WebBindings::releaseObject(o); }
52 // Handles automatically releasing a reference to the NPObject on destruction.
54 typedef scoped_ptr<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_;
host_var_tracker.h 22 typedef struct NPObject NPObject;
32 // Adds NPObject var tracking to the standard PPAPI VarTracker for use in the
40 // NPObject and get the NPObjectVar corresponding to it. This Add/Remove
46 // Looks up a previously registered NPObjectVar for the given NPObject and
48 // given NPObject for the given instance. See AddNPObjectVar above.
50 NPObject* np_object);
85 typedef std::map<NPObject*, ppapi::NPObjectVar*> NPObjectToNPObjectVarMap;
88 // then by the NPObject*. This allows us to look up an NPObjectVar given
92 // NPObjectToNPObjectVarMap lazily when the first NPObject var is created
    [all...]
plugin_object.cc 38 // NPObject implementation in terms of PPP_Class_Deprecated --------------------
40 NPObject* WrapperClass_Allocate(NPP npp, NPClass* unused) {
44 void WrapperClass_Deallocate(NPObject* np_object) {
53 void WrapperClass_Invalidate(NPObject* object) {}
55 bool WrapperClass_HasMethod(NPObject* object, NPIdentifier method_name) {
70 bool WrapperClass_Invoke(NPObject* object,
97 bool WrapperClass_InvokeDefault(NPObject* np_object,
123 bool WrapperClass_HasProperty(NPObject* object, NPIdentifier property_name) {
138 bool WrapperClass_GetProperty(NPObject* object,
153 bool WrapperClass_SetProperty(NPObject* object
    [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.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_lifetime_test.h 14 // The NPObjectLifeTime class tests the case where a plugin has an NPObject
16 // page and whether refcounts on this npobject are valid when the source frame
31 NPObject* other_plugin_instance_object_;
52 static NPObject* plugin_instance_object_;
70 NPObject* plugin_instance_object_;
  /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/content/shell/tools/plugin/
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...]
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...]
  /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/third_party/WebKit/Source/web/
WebBindings.cpp 58 bool WebBindings::construct(NPP npp, NPObject* object, const NPVariant* args, uint32_t argCount, NPVariant* result)
63 NPObject* WebBindings::createObject(NPP npp, NPClass* npClass)
68 bool WebBindings::enumerate(NPP npp, NPObject* object, NPIdentifier** identifier, uint32_t* identifierCount)
73 bool WebBindings::evaluate(NPP npp, NPObject* object, NPString* script, NPVariant* result)
78 bool WebBindings::evaluateHelper(NPP npp, bool popupsAllowed, NPObject* object, NPString* script, NPVariant* result)
88 bool WebBindings::getProperty(NPP npp, NPObject* object, NPIdentifier property, NPVariant* result)
103 bool WebBindings::hasMethod(NPP npp, NPObject* object, NPIdentifier method)
108 bool WebBindings::hasProperty(NPP npp, NPObject* object, NPIdentifier property)
128 bool WebBindings::invoke(NPP npp, NPObject* object, NPIdentifier method, const NPVariant* args, uint32_t argCount, NPVariant* result)
133 bool WebBindings::invokeDefault(NPP npp, NPObject* object, const NPVariant* args, uint32_t argCount, NPVariant* result
    [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...]

Completed in 435 milliseconds

1 2 3 4 5 6