Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Unified Diff: content/renderer/browser_plugin/browser_plugin_bindings.cc

Issue 12326168: Move <webview> API to chrome layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/browser_plugin/browser_plugin_bindings.cc
diff --git a/content/renderer/browser_plugin/browser_plugin_bindings.cc b/content/renderer/browser_plugin/browser_plugin_bindings.cc
index d331cf6973f6859685bdbeb42930be790e97700b..4afe3372fcb3bb21369777c4314c88d59e131b25 100644
--- a/content/renderer/browser_plugin/browser_plugin_bindings.cc
+++ b/content/renderer/browser_plugin/browser_plugin_bindings.cc
@@ -222,22 +222,6 @@ class BrowserPluginMethodBindingImpl : public BrowserPluginMethodBinding {
DISALLOW_COPY_AND_ASSIGN(BrowserPluginMethodBindingImpl);
};
-class BrowserPluginBindingBack : public BrowserPluginMethodBindingImpl {
- public:
- BrowserPluginBindingBack(BrowserPluginImpl* browser_plugin)
- : BrowserPluginMethodBindingImpl(browser_plugin,
- browser_plugin::kMethodBack, 0) {
- }
-
- virtual bool Invoke(const NPVariant* args, NPVariant* result) OVERRIDE {
- browser_plugin()->Back();
- return true;
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindingBack);
-};
-
class BrowserPluginBindingCanGoBack : public BrowserPluginMethodBindingImpl {
public:
BrowserPluginBindingCanGoBack(BrowserPluginImpl* browser_plugin)
@@ -270,22 +254,6 @@ class BrowserPluginBindingCanGoForward : public BrowserPluginMethodBindingImpl {
DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindingCanGoForward);
};
-class BrowserPluginBindingForward : public BrowserPluginMethodBindingImpl {
- public:
- BrowserPluginBindingForward(BrowserPluginImpl* browser_plugin)
- : BrowserPluginMethodBindingImpl(browser_plugin,
- browser_plugin::kMethodForward, 0) {
- }
-
- virtual bool Invoke(const NPVariant* args, NPVariant* result) OVERRIDE {
- browser_plugin()->Forward();
- return true;
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindingForward);
-};
-
// Note: This is a method that is used internally by the <webview> shim only.
// This should not be exposed to developers.
class BrowserPluginBindingGetRouteID : public BrowserPluginMethodBindingImpl {
@@ -321,22 +289,6 @@ class BrowserPluginBindingGetProcessID :
DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindingGetProcessID);
};
-class BrowserPluginBindingGo : public BrowserPluginMethodBindingImpl {
- public:
- BrowserPluginBindingGo(BrowserPluginImpl* browser_plugin)
- : BrowserPluginMethodBindingImpl(browser_plugin,
- browser_plugin::kMethodGo, 1) {
- }
-
- virtual bool Invoke(const NPVariant* args, NPVariant* result) OVERRIDE {
- browser_plugin()->Go(Int32FromNPVariant(args[0]));
- return true;
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BrowserPluginBindingGo);
-};
-
// Note: This is a method that is used internally by the <webview> shim only.
// This should not be exposed to developers.
class BrowserPluginBindingPersistRequestObject
@@ -780,13 +732,10 @@ BrowserPluginBindings::BrowserPluginBindings(BrowserPluginImpl* instance)
np_object_ = static_cast<BrowserPluginBindings::BrowserPluginNPObject*>(obj);
np_object_->message_channel = weak_ptr_factory_.GetWeakPtr();
- method_bindings_.push_back(new BrowserPluginBindingBack(instance));
method_bindings_.push_back(new BrowserPluginBindingCanGoBack(instance));
method_bindings_.push_back(new BrowserPluginBindingCanGoForward(instance));
- method_bindings_.push_back(new BrowserPluginBindingForward(instance));
method_bindings_.push_back(new BrowserPluginBindingGetProcessID(instance));
method_bindings_.push_back(new BrowserPluginBindingGetRouteID(instance));
- method_bindings_.push_back(new BrowserPluginBindingGo(instance));
method_bindings_.push_back(
new BrowserPluginBindingPersistRequestObject(instance));
method_bindings_.push_back(new BrowserPluginBindingReload(instance));
« no previous file with comments | « content/public/renderer/browser_plugin/browser_plugin.h ('k') | content/renderer/browser_plugin/browser_plugin_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698