Home | History | Annotate | Download | only in glue

Lines Matching refs:NPObject

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 the
89 static bool hasProperty(NPObject *obj, NPIdentifier ident);
91 // Returns true if the C++ class associated with this NPObject exposes the
93 static bool hasMethod(NPObject *obj, NPIdentifier ident);
96 // NPObject, invokes it with the given args and returns a result. Otherwise,
98 static bool invoke(NPObject *obj, NPIdentifier ident,
103 // NPObject, returns its value. Otherwise, returns "undefined" (in the
105 static bool getProperty(NPObject *obj, NPIdentifier ident,
109 // NPObject, sets its value. Otherwise, does nothing. Called by the JS
111 static bool setProperty(NPObject *obj, NPIdentifier ident,
131 /* static */ NPObject* CppNPObject::allocate(NPP npp, NPClass* aClass) {
133 // obj->parent will be initialized by the NPObject code calling this.
138 /* static */ void CppNPObject::deallocate(NPObject* np_obj) {
143 /* static */ bool CppNPObject::hasMethod(NPObject* np_obj,
149 /* static */ bool CppNPObject::hasProperty(NPObject* np_obj,
155 /* static */ bool CppNPObject::invoke(NPObject* np_obj, NPIdentifier ident,
162 /* static */ bool CppNPObject::getProperty(NPObject* np_obj,
169 /* static */ bool CppNPObject::setProperty(NPObject* np_obj,
308 // Create an NPObject using our static NPClass. The first argument (a
311 NPObject* np_obj = WebBindings::createObject(0, &CppNPObject::np_class_);
328 // BindToWindowObject will take its own reference to the NPObject, and clean