Home | History | Annotate | Download | only in glue

Lines Matching refs:CppNPObject

9 // - CppNPObject's static invoke() function forwards it to its attached
68 struct CppNPObject {
77 // An NPClass associates static functions of CppNPObject with the
115 // Build CppNPObject's static function pointers into an NPClass, for use
117 NPClass CppNPObject::np_class_ = {
119 CppNPObject::allocate,
120 CppNPObject::deallocate,
122 CppNPObject::hasMethod,
123 CppNPObject::invoke,
125 CppNPObject::hasProperty,
126 CppNPObject::getProperty,
127 CppNPObject::setProperty,
131 /* static */ NPObject* CppNPObject::allocate(NPP npp, NPClass* aClass) {
132 CppNPObject* obj = new CppNPObject;
138 /* static */ void CppNPObject::deallocate(NPObject* np_obj) {
139 CppNPObject* obj = reinterpret_cast<CppNPObject*>(np_obj);
143 /* static */ bool CppNPObject::hasMethod(NPObject* np_obj,
145 CppNPObject* obj = reinterpret_cast<CppNPObject*>(np_obj);
149 /* static */ bool CppNPObject::hasProperty(NPObject* np_obj,
151 CppNPObject* obj = reinterpret_cast<CppNPObject*>(np_obj);
155 /* static */ bool CppNPObject::invoke(NPObject* np_obj, NPIdentifier ident,
158 CppNPObject* obj = reinterpret_cast<CppNPObject*>(np_obj);
162 /* static */ bool CppNPObject::getProperty(NPObject* np_obj,
165 CppNPObject* obj = reinterpret_cast<CppNPObject*>(np_obj);
169 /* static */ bool CppNPObject::setProperty(NPObject* np_obj,
172 CppNPObject* obj = reinterpret_cast<CppNPObject*>(np_obj);
311 NPObject* np_obj = WebBindings::createObject(0, &CppNPObject::np_class_);
312 CppNPObject* obj = reinterpret_cast<CppNPObject*>(np_obj);