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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.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_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index 374deec1ecc28b5ac3ede27f9ac94a7a8ef00eda..3eb97c0682757ade6b020365fe76272b79f55169 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -67,6 +67,18 @@ bool BrowserPluginGuest::ViewTakeFocus(bool reverse) {
return true;
}
+void BrowserPluginGuest::Back() {
+ web_contents()->GetController().GoBack();
+}
+
+void BrowserPluginGuest::Forward() {
+ web_contents()->GetController().GoForward();
+}
+
+void BrowserPluginGuest::Go(int relative_index) {
+ web_contents()->GetController().GoToOffset(relative_index);
+}
+
void BrowserPluginGuest::RendererUnresponsive(WebContents* source) {
base::ProcessHandle process_handle =
web_contents()->GetRenderProcessHost()->GetHandle();

Powered by Google App Engine
This is Rietveld 408576698