diff options
Diffstat (limited to 'chrome/renderer/blocked_plugin.cc')
-rw-r--r-- | chrome/renderer/blocked_plugin.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/blocked_plugin.cc b/chrome/renderer/blocked_plugin.cc index b0afe23..3bd7909 100644 --- a/chrome/renderer/blocked_plugin.cc +++ b/chrome/renderer/blocked_plugin.cc @@ -83,6 +83,7 @@ BlockedPlugin::~BlockedPlugin() { void BlockedPlugin::BindWebFrame(WebFrame* frame) { BindToJavascript(frame, "plugin"); BindMethod("load", &BlockedPlugin::Load); + BindMethod("hide", &BlockedPlugin::Hide); } void BlockedPlugin::WillDestroyPlugin() { @@ -150,6 +151,10 @@ void BlockedPlugin::Load(const CppArgumentList& args, CppVariant* result) { LoadPlugin(); } +void BlockedPlugin::Hide(const CppArgumentList& args, CppVariant* result) { + HidePlugin(); +} + void BlockedPlugin::HidePlugin() { CHECK(plugin_); WebPluginContainer* container = plugin_->container(); |