39#include "ScriptablePluginObjectBase.h"
44static NPIdentifier sDocument_id;
45static NPIdentifier sBody_id;
48static NPIdentifier sCreateElement_id;
49static NPIdentifier sCreateTextNode_id;
50static NPIdentifier sAppendChild_id;
53static NPIdentifier sPluginType_id;
54static NPIdentifier sFoo_id;
55static NPIdentifier sBar_id;
56static NPIdentifier sShowText_id;
57static NPIdentifier sClearWindow_id;
70 virtual bool HasMethod(NPIdentifier name);
80AllocateScriptablePluginObject(
NPP npp,
NPClass *aClass)
86 AllocateScriptablePluginObject);
virtual bool InvokeDefault(const NPVariant *args, uint32_t argCount, NPVariant *result)
Manages the invocation of the default '()' method.
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 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 HasProperty(NPIdentifier name)
Returns true if the NPIdentifier passed is managed as a scriptable property.