diff options
author | Tommi Komulainen <tko@litl.com> | 2009-08-25 10:34:06 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marcopg@litl.com> | 2010-07-27 22:04:22 (GMT) |
commit | 4ca63208acd85880d873b2e59e6ce42df33f874c (patch) | |
tree | 2c6e21c493fd5419248cb039874edb34a2c42121 /browser-plugin/scriptable.h | |
parent | 158f60dac9961a0ed044229b224b7943f3770957 (diff) |
browser-plugin: add magicWrapper property
Allow browser to provide an object with callbacks / properties for the
plugin to call when status changes (title, clipboard controls, etc.)
Diffstat (limited to 'browser-plugin/scriptable.h')
-rw-r--r-- | browser-plugin/scriptable.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/browser-plugin/scriptable.h b/browser-plugin/scriptable.h index 0b9bf29..4a96b77 100644 --- a/browser-plugin/scriptable.h +++ b/browser-plugin/scriptable.h @@ -83,6 +83,7 @@ class ScriptablePluginObject : public ScriptablePluginObjectBase virtual bool HasMethod (NPIdentifier name); virtual bool HasProperty (NPIdentifier name); virtual bool GetProperty (NPIdentifier name, NPVariant *result); + virtual bool SetProperty (NPIdentifier name, const NPVariant *value); virtual bool Invoke (NPIdentifier name, const NPVariant *args, uint32_t argCount, NPVariant *result); virtual bool InvokeDefault (const NPVariant *args, uint32_t argCount, @@ -90,11 +91,14 @@ class ScriptablePluginObject : public ScriptablePluginObjectBase private: NPIdentifier mTitleID; + NPIdentifier mMagicWrapperID; NPIdentifier mZoomInID; NPIdentifier mZoomOutID; NPIdentifier mFindPreviousID; NPIdentifier mFindNextID; + + NPObject *mMagicWrapper; }; class ConstructablePluginObject : public ScriptablePluginObjectBase |