Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser-plugin/scriptable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'browser-plugin/scriptable.cpp')
-rw-r--r--browser-plugin/scriptable.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/browser-plugin/scriptable.cpp b/browser-plugin/scriptable.cpp
index 833d24f..6c7e55c 100644
--- a/browser-plugin/scriptable.cpp
+++ b/browser-plugin/scriptable.cpp
@@ -203,6 +203,7 @@ ScriptablePluginObject::ScriptablePluginObject (NPP npp) :
mTitleID = NPN_GetStringIdentifier ("title");
mZoomID = NPN_GetStringIdentifier ("zoom");
mCanCopyID = NPN_GetStringIdentifier ("canCopy");
+ mCanFindOnPageID = NPN_GetStringIdentifier ("canFindOnPage");
mMagicWrapperID = NPN_GetStringIdentifier ("magicWrapper");
mZoomInID = NPN_GetStringIdentifier ("zoomIn");
@@ -245,6 +246,7 @@ ScriptablePluginObject::HasProperty (NPIdentifier name)
mTitleID,
mZoomID,
mCanCopyID,
+ mCanFindOnPageID,
mMagicWrapperID
};
@@ -278,6 +280,9 @@ ScriptablePluginObject::GetProperty (NPIdentifier name, NPVariant *result)
} else if (name == mCanCopyID) {
BOOLEAN_TO_NPVARIANT (plugin->mHasSelection, *result);
return true;
+ } else if (name == mCanFindOnPageID) {
+ BOOLEAN_TO_NPVARIANT (plugin->mCanFindOnPage, *result);
+ return true;
}
return false;