Gnash
0.8.10
|
#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. | |
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, const NPVariant *value) |
bool | NPN_HasProperty (NPP, NPObject *, NPIdentifier name) |
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 NPN_MemAlloc(), gnash::plugin::ExternalInterface::convertNPVariant(), runtest, gnash::plugin::ExternalInterface::makeProperty(), gnash::plugin::ExternalInterface::makeString(), gnash::plugin::ExternalInterface::makeNumber(), gnash::plugin::ExternalInterface::makeArray(), gnash::plugin::ExternalInterface::makeObject(), gnash::plugin::ExternalInterface::parseXML(), data, gnash::NPStringToString(), gnash::plugin::ExternalInterface::parseProperties(), gnash::plugin::ExternalInterface::makeInvoke(), gnash::plugin::ExternalInterface::parseArguments(), gnash::invoke(), gnash::plugin::ExternalInterface::parseInvoke(), test::v, gnash::GnashNPVariant::get(), and NPN_MemFree().
bool NPN_GetProperty | ( | NPP | , |
NPObject * | , | ||
NPIdentifier | name, | ||
const NPVariant * | value | ||
) |
References _properties.
NPIdentifier NPN_GetStringIdentifier | ( | const NPUTF8 * | ) |
bool NPN_HasProperty | ( | NPP | , |
NPObject * | , | ||
NPIdentifier | name | ||
) |
References _properties.
void* NPN_MemAlloc | ( | uint32_t | size | ) |
References malloc().
void NPN_ReleaseObject | ( | NPObject * | npobj | ) |
References assert, and NPN_MemFree().
void NPN_ReleaseVariantValue | ( | NPVariant * | variant | ) |
References NPN_MemFree(), gnash::GetNPStringChars(), and NPN_ReleaseObject().
NPObject* NPN_RetainObject | ( | NPObject * | obj | ) |
References assert.
bool NPN_SetProperty | ( | NPP | , |
NPObject * | , | ||
NPIdentifier | name, | ||
const NPVariant * | value | ||
) |
References _properties.
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...
Referenced by gnash::nsPluginInstance::GetValue().
NPError NS_PluginInitialize | ( | void | ) |
void NS_PluginShutdown | ( | void | ) |
std::map<NPIdentifier, NPInvokeFunctionPtr> _methods |
std::map<NPIdentifier, NPVariant *> _properties |
TestState& runtest = _runtest |