summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_web_contents_view_delegate_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell/shell_web_contents_view_delegate_gtk.cc')
-rw-r--r--content/shell/shell_web_contents_view_delegate_gtk.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/shell/shell_web_contents_view_delegate_gtk.cc b/content/shell/shell_web_contents_view_delegate_gtk.cc
index ce354ef..cd72e03 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) {