Home | History | Annotate | Download | only in chromium

Lines Matching refs:CppNPObject

36 // - CppNPObject's static invoke() function forwards it to its attached
94 struct CppNPObject {
103 // An NPClass associates static functions of CppNPObject with the
139 // Build CppNPObject's static function pointers into an NPClass, for use
141 NPClass CppNPObject::npClass = {
143 CppNPObject::allocate,
144 CppNPObject::deallocate,
146 CppNPObject::hasMethod,
147 CppNPObject::invoke,
149 CppNPObject::hasProperty,
150 CppNPObject::getProperty,
151 CppNPObject::setProperty,
155 NPObject* CppNPObject::allocate(NPP npp, NPClass* aClass)
157 CppNPObject* obj = new CppNPObject;
163 void CppNPObject::deallocate(NPObject* npObj)
165 CppNPObject* obj = reinterpret_cast<CppNPObject*>(npObj);
169 bool CppNPObject::hasMethod(NPObject* npObj, NPIdentifier ident)
171 CppNPObject* obj = reinterpret_cast<CppNPObject*>(npObj);
175 bool CppNPObject::hasProperty(NPObject* npObj, NPIdentifier ident)
177 CppNPObject* obj = reinterpret_cast<CppNPObject*>(npObj);
181 bool CppNPObject::invoke(NPObject* npObj, NPIdentifier ident,
185 CppNPObject* obj = reinterpret_cast<CppNPObject*>(npObj);
189 bool CppNPObject::getProperty(NPObject* npObj, NPIdentifier ident, NPVariant* result)
191 CppNPObject* obj = reinterpret_cast<CppNPObject*>(npObj);
195 bool CppNPObject::setProperty(NPObject* npObj, NPIdentifier ident, const NPVariant* value)
197 CppNPObject* obj = reinterpret_cast<CppNPObject*>(npObj);
333 NPObject* npObj = WebBindings::createObject(0, &CppNPObject::npClass);
334 CppNPObject* obj = reinterpret_cast<CppNPObject*>(npObj);