Home | History | Annotate | Download | only in chromium

Lines Matching full:npobject

35 // - Something calls our NPObject with a function like "Invoke".
91 // Our special NPObject type. We extend an NPObject with a pointer to a
92 // CppBoundClass, which is just a C++ interface that we forward all NPObject
95 NPObject parent; // This must be the first field in the struct.
100 // with NPObject/NPClass.
107 // Allocate a new NPObject with the specified class.
108 static NPObject* allocate(NPP, NPClass*);
111 static void deallocate(NPObject*);
113 // Returns true if the C++ class associated with this NPObject exposes the
115 static bool hasProperty(NPObject*, NPIdentifier);
117 // Returns true if the C++ class associated with this NPObject exposes the
119 static bool hasMethod(NPObject*, NPIdentifier);
122 // NPObject, invokes it with the given arguments and returns a result. Otherwise,
124 static bool invoke(NPObject*, NPIdentifier,
129 // NPObject, returns its value. Otherwise, returns "undefined" (in the
131 static bool getProperty(NPObject*, NPIdentifier, NPVariant* result);
134 // NPObject, sets its value. Otherwise, does nothing. Called by the JS
136 static bool setProperty(NPObject*, NPIdentifier, const NPVariant* value);
155 NPObject* CppNPObject::allocate(NPP npp, NPClass* aClass)
158 // obj->parent will be initialized by the NPObject code calling this.
163 void CppNPObject::deallocate(NPObject* npObj)
169 bool CppNPObject::hasMethod(NPObject* npObj, NPIdentifier ident)
175 bool CppNPObject::hasProperty(NPObject* npObj, NPIdentifier ident)
181 bool CppNPObject::invoke(NPObject* npObj, NPIdentifier ident,
189 bool CppNPObject::getProperty(NPObject* npObj, NPIdentifier ident, NPVariant* result)
195 bool CppNPObject::setProperty(NPObject* npObj, NPIdentifier ident, const NPVariant* value)
330 // Create an NPObject using our static NPClass. The first argument (a
333 NPObject* npObj = WebBindings::createObject(0, &CppNPObject::npClass);
345 // BindToWindowObject will take its own reference to the NPObject, and clean