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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder_helper.cc

Issue 10960003: Browser Plugin: Implement Back, Forward, and Go. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a test Created 8 years, 3 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/browser/browser_plugin/browser_plugin_embedder_helper.cc
diff --git a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
index 2bc9cdfefb1dd80ba06f0a6a13473db8a313f6a4..45fd5ff32dc2a5b49640234417c92f16ac6d36e3 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
+++ b/content/browser/browser_plugin/browser_plugin_embedder_helper.cc
@@ -43,6 +43,9 @@ bool BrowserPluginEmbedderHelper::OnMessageReceived(
&handled))
IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_PluginDestroyed,
OnPluginDestroyed);
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Back, OnBack)
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Forward, OnForward)
+ IPC_MESSAGE_HANDLER(BrowserPluginHostMsg_Go, OnGo)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -148,4 +151,16 @@ void BrowserPluginEmbedderHelper::OnPluginDestroyed(int instance_id) {
embedder_->PluginDestroyed(instance_id);
}
+void BrowserPluginEmbedderHelper::OnBack(int instance_id) {
+ embedder_->Back(instance_id);
+}
+
+void BrowserPluginEmbedderHelper::OnForward(int instance_id) {
+ embedder_->Forward(instance_id);
+}
+
+void BrowserPluginEmbedderHelper::OnGo(int instance_id, int relative_index) {
+ embedder_->Go(instance_id, relative_index);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698