|
Gnash
0.8.11dev
|
#include <iostream>#include <string>#include <cstdlib>#include <vector>#include <map>#include <cassert>#include <memory>#include "npapi.h"#include "npruntime.h"#include "npfunctions.h"#include "pluginbase.h"#include "dejagnu.h"#include "../../testsuite/check.h"#include <regex.h>#include "external.h"#include "GnashNPVariant.h"Functions | |
| int | main (int, char **) |
| void * | NPN_MemAlloc (uint32_t size) |
| void | NPN_MemFree (void *ptr) |
| NPIdentifier | NPN_GetStringIdentifier (const NPUTF8 *) |
| nsPluginInstanceBase * | NS_NewPluginInstance (nsPluginCreateData *) |
| NPError | NS_PluginGetValue (NPPVariable, void *) |
| Retrieve values from the plugin for the Browser. More... | |
| NPError | NS_PluginInitialize () |
| void | NS_PluginShutdown () |
| char * | NPP_GetMIMEDescription (void) |
| void | NS_DestroyPluginInstance (nsPluginInstanceBase *) |
| bool | NPN_SetProperty (NPP, NPObject *, NPIdentifier name, const NPVariant *value) |
| bool | NPN_GetProperty (NPP, NPObject *, NPIdentifier name, NPVariant *value) |
| bool | NPN_HasProperty (NPP, NPObject *, NPIdentifier name) |
| NPError | NPN_GetValue (NPP, NPNVariable, void *) |
| bool | NPN_Invoke (NPP, NPObject *, NPIdentifier, const NPVariant *, uint32_t, NPVariant *) |
| void | NPN_ReleaseVariantValue (NPVariant *variant) |
| NPObject * | NPN_RetainObject (NPObject *obj) |
| void | NPN_ReleaseObject (NPObject *npobj) |
Variables | |
| TestState & | runtest = _runtest |
| std::map< NPIdentifier, NPVariant * > | _properties |
| std::map< NPIdentifier, NPInvokeFunctionPtr > | _methods |
| int main | ( | int | , |
| char ** | |||
| ) |
References gnash::plugin::ExternalInterface::convertNPVariant(), data, gnash::GnashNPVariant::get(), gnash::invoke(), gnash::plugin::ExternalInterface::makeArray(), gnash::plugin::ExternalInterface::makeInvoke(), gnash::plugin::ExternalInterface::makeNumber(), gnash::plugin::ExternalInterface::makeObject(), gnash::plugin::ExternalInterface::makeProperty(), gnash::plugin::ExternalInterface::makeString(), NPN_MemAlloc(), NPN_MemFree(), gnash::NPStringToString(), gnash::plugin::ExternalInterface::parseArguments(), gnash::plugin::ExternalInterface::parseInvoke(), gnash::plugin::ExternalInterface::parseProperties(), gnash::plugin::ExternalInterface::parseXML(), runtest, and test::v.
| bool NPN_GetProperty | ( | NPP | , |
| NPObject * | , | ||
| NPIdentifier | name, | ||
| NPVariant * | value | ||
| ) |
References _properties.
| NPIdentifier NPN_GetStringIdentifier | ( | const NPUTF8 * | ) |
| NPError NPN_GetValue | ( | NPP | , |
| NPNVariable | , | ||
| void * | |||
| ) |
| bool NPN_HasProperty | ( | NPP | , |
| NPObject * | , | ||
| NPIdentifier | name | ||
| ) |
References _properties.
| bool NPN_Invoke | ( | NPP | , |
| NPObject * | , | ||
| NPIdentifier | , | ||
| const NPVariant * | , | ||
| uint32_t | , | ||
| NPVariant * | |||
| ) |
| void* NPN_MemAlloc | ( | uint32_t | size | ) |
Referenced by main().
| void NPN_MemFree | ( | void * | ptr | ) |
Referenced by main(), NPN_ReleaseObject(), and NPN_ReleaseVariantValue().
| void NPN_ReleaseObject | ( | NPObject * | npobj | ) |
References NPN_MemFree().
Referenced by NPN_ReleaseVariantValue().
| void NPN_ReleaseVariantValue | ( | NPVariant * | variant | ) |
References gnash::GetNPStringChars(), NPN_MemFree(), and NPN_ReleaseObject().
| NPObject* NPN_RetainObject | ( | NPObject * | obj | ) |
| bool NPN_SetProperty | ( | NPP | , |
| NPObject * | , | ||
| NPIdentifier | name, | ||
| const NPVariant * | value | ||
| ) |
References _properties, and name.
| char* NPP_GetMIMEDescription | ( | void | ) |
References x.
| void NS_DestroyPluginInstance | ( | nsPluginInstanceBase * | ) |
| nsPluginInstanceBase* NS_NewPluginInstance | ( | nsPluginCreateData * | ) |
| NPError NS_PluginGetValue | ( | NPPVariable | , |
| void * | |||
| ) |
Retrieve values from the plugin for the Browser.
This C++ function is called by the browser to get certain information is needs from the plugin. This information is the plugin name, a description, etc...
| NPError NS_PluginInitialize | ( | void | ) |
| void NS_PluginShutdown | ( | void | ) |
| std::map<NPIdentifier, NPInvokeFunctionPtr> _methods |
| std::map<NPIdentifier, NPVariant *> _properties |
Referenced by NPN_GetProperty(), NPN_HasProperty(), and NPN_SetProperty().
| TestState& runtest = _runtest |
Referenced by main().
1.8.12