39 #include "ScriptablePluginObjectBase.h"
44 static NPIdentifier sDocument_id;
45 static NPIdentifier sBody_id;
48 static NPIdentifier sCreateElement_id;
49 static NPIdentifier sCreateTextNode_id;
50 static NPIdentifier sAppendChild_id;
53 static NPIdentifier sPluginType_id;
54 static NPIdentifier sFoo_id;
55 static NPIdentifier sBar_id;
56 static NPIdentifier sShowText_id;
57 static NPIdentifier sClearWindow_id;
70 virtual bool HasMethod(NPIdentifier name);
80 AllocateScriptablePluginObject(
NPP npp,
NPClass *aClass)
86 AllocateScriptablePluginObject);
virtual bool HasProperty(NPIdentifier name)
Returns true if the NPIdentifier passed is managed as a scriptable property.
virtual bool Invoke(NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result)
returns true if the invoked method is managed and executes the appropriate code filling the NPVariant...
virtual bool GetProperty(NPIdentifier name, NPVariant *result)
Returns true if the scriptable property is managed and fills the NPVariant pointer with the value...
virtual bool InvokeDefault(const NPVariant *args, uint32_t argCount, NPVariant *result)
Manages the invocation of the default '()' method.