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

Unified Diff: content/shell/shell_web_contents_view_delegate_gtk.cc

Issue 12334073: Remove WebContents methods that duplicate WebContentsView methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « content/shell/shell_gtk.cc ('k') | content/shell/shell_web_contents_view_delegate_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_web_contents_view_delegate_gtk.cc
diff --git a/content/shell/shell_web_contents_view_delegate_gtk.cc b/content/shell/shell_web_contents_view_delegate_gtk.cc
index ce354ef21d9f7d4909b2c20ef7192d94ab9dd92a..cd72e03c359427b928f72da75245531658154960 100644
--- a/content/shell/shell_web_contents_view_delegate_gtk.cc
+++ b/content/shell/shell_web_contents_view_delegate_gtk.cc
@@ -196,17 +196,17 @@ gboolean ShellWebContentsViewDelegate::OnNativeViewFocusEvent(
void ShellWebContentsViewDelegate::OnBackMenuActivated(GtkWidget* widget) {
web_contents_->GetController().GoToOffset(-1);
- web_contents_->Focus();
+ web_contents_->GetView()->Focus();
}
void ShellWebContentsViewDelegate::OnForwardMenuActivated(GtkWidget* widget) {
web_contents_->GetController().GoToOffset(1);
- web_contents_->Focus();
+ web_contents_->GetView()->Focus();
}
void ShellWebContentsViewDelegate::OnReloadMenuActivated(GtkWidget* widget) {
web_contents_->GetController().Reload(false);
- web_contents_->Focus();
+ web_contents_->GetView()->Focus();
}
void ShellWebContentsViewDelegate::OnOpenURLMenuActivated(GtkWidget* widget) {
« no previous file with comments | « content/shell/shell_gtk.cc ('k') | content/shell/shell_web_contents_view_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698