Home | History | Annotate | Download | only in TestNetscapePlugIn.subproj

Lines Matching refs:obj

226 static bool pluginHasProperty(NPObject *obj, NPIdentifier name)
234 static bool pluginHasMethod(NPObject *obj, NPIdentifier name)
242 static bool pluginGetProperty(NPObject* obj, NPIdentifier name, NPVariant* result)
244 PluginObject* plugin = reinterpret_cast<PluginObject*>(obj);
274 browser->setexception(obj, "plugin object testThrowExceptionProperty SUCCESS");
280 static bool pluginSetProperty(NPObject* obj, NPIdentifier name, const NPVariant* variant)
282 PluginObject* plugin = reinterpret_cast<PluginObject*>(obj);
293 browser->setexception(obj, "plugin object testThrowExceptionProperty SUCCESS");
300 static bool testDOMAccess(PluginObject* obj, const NPVariant*, uint32_t, NPVariant* result)
304 if (browser->getvalue(obj->npp, NPNVPluginElementNPObject, &elementObject) == NPERR_NO_ERROR) {
308 if (browser->getproperty(obj->npp, elementObject, styleIdentifier, &styleVariant) && NPVARIANT_IS_OBJECT(styleVariant)) {
313 browser->setproperty(obj->npp, NPVARIANT_TO_OBJECT(styleVariant), borderIdentifier, &borderVariant);
385 static bool testCallback(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
391 browser->getvalue(obj->npp, NPNVWindowNPObject, &windowScriptObject);
398 browser->invoke(obj->npp, windowScriptObject, callbackIdentifier, 0, 0, &browserResult);
407 static bool getURL(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
412 NPError npErr = browser->geturl(obj->npp, urlString, targetString);
420 NPError npErr = browser->geturl(obj->npp, urlString, 0);
436 static bool getURLNotify(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
448 browser->geturlnotify(obj->npp, urlString, targetString, callbackIdentifier);
458 obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
469 bool retval = browser->invokeDefault(obj->npp, callback, invokeArgs, 1, &browserResult);
478 static bool destroyStream(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
480 NPError npError = browser->destroystream(obj->npp, obj->stream, NPRES_USER_BREAK);
485 static bool destroyNullStream(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
487 NPError npError = browser->destroystream(obj->npp, 0, NPRES_USER_BREAK);
492 static bool testEnumerate(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
499 if (browser->enumerate(obj->npp, NPVARIANT_TO_OBJECT(args[0]), &identifiers, &count)) {
512 browser->invoke(obj->npp, outArray, pushIdentifier, args, 1, &browserResult);
534 static bool testGetProperty(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
540 browser->getvalue(obj->npp, NPNVWindowNPObject, &object);
549 bool retval = browser->getproperty(obj->npp, object, propertyIdentifier, &variant);
568 static bool testHasProperty(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
577 bool retval = browser->hasproperty(obj->npp, NPVARIANT_TO_OBJECT(args[0]), propertyIdentifier);
583 static bool testHasMethod(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
592 bool retval = browser->hasmethod(obj->npp, NPVARIANT_TO_OBJECT(args[0]), propertyIdentifier);
598 static bool testEvaluate(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
603 browser->getvalue(obj->npp, NPNVWindowNPObject, &windowScriptObject);
607 bool retval = browser->evaluate(obj->npp, windowScriptObject, &s, result);
612 static bool testGetPropertyReturnValue(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
622 bool retval = browser->getproperty(obj->npp, NPVARIANT_TO_OBJECT(args[0]), propertyIdentifier, &variant);
639 static bool testPostURLFile(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
662 NPError error = browser->posturl(obj->npp, url, target, pathString.UTF8Length, path, TRUE);
672 static bool testConstruct(PluginObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)
677 return browser->construct(obj->npp, NPVARIANT_TO_OBJECT(args[0]), args + 1, argCount - 1, result);
815 static bool pluginInvokeDefault(NPObject* obj, const NPVariant* args, uint32_t argCount, NPVariant* result)