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

Unified Diff: content/renderer/browser_plugin/browser_plugin.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/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index fe3ff38f252a3087254fcd66393b179e4bba6a0b..a730aed6187c4f2b9452522fad35e7d0c8624323 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -149,6 +149,31 @@ void BrowserPlugin::RemoveEventListeners() {
event_listener_map_.clear();
}
+void BrowserPlugin::Back() {
+ if (!navigate_src_sent_)
+ return;
+ BrowserPluginManager::Get()->Send(
lazyboy 2012/09/20 20:05:42 Can we reduce this and next messages and use BPHos
Fady Samuel 2012/09/21 15:21:56 We can, but I don't know if these are identical op
+ new BrowserPluginHostMsg_Back(render_view_->GetRoutingID(),
+ instance_id_));
+}
+
+void BrowserPlugin::Forward() {
+ if (!navigate_src_sent_)
+ return;
+ BrowserPluginManager::Get()->Send(
+ new BrowserPluginHostMsg_Forward(render_view_->GetRoutingID(),
+ instance_id_));
+}
+
+void BrowserPlugin::Go(int relative_index) {
+ if (!navigate_src_sent_)
+ return;
+ BrowserPluginManager::Get()->Send(
+ new BrowserPluginHostMsg_Go(render_view_->GetRoutingID(),
+ instance_id_,
+ relative_index));
+}
+
void BrowserPlugin::UpdateRect(
int message_id,
const BrowserPluginMsg_UpdateRect_Params& params) {

Powered by Google App Engine
This is Rietveld 408576698