summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/browser_window_gtk.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-26 06:09:06 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-26 06:09:06 +0000
commitf3615f0a53ed81a0146c3ff2816ac8432b779cbf (patch)
treecb1565c101fc9c425c8d6848e9bbd4ea62d00078 /chrome/browser/ui/gtk/browser_window_gtk.cc
parentc9e49a0ce0b7e7d0cc4c447f1c81161d28dbfe07 (diff)
downloadchromium_src-f3615f0a53ed81a0146c3ff2816ac8432b779cbf.zip
chromium_src-f3615f0a53ed81a0146c3ff2816ac8432b779cbf.tar.gz
chromium_src-f3615f0a53ed81a0146c3ff2816ac8432b779cbf.tar.bz2
Remove WebContents methods that duplicate WebContentsView methods.
Review URL: https://codereview.chromium.org/12334073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk/browser_window_gtk.cc')
-rw-r--r--chrome/browser/ui/gtk/browser_window_gtk.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/ui/gtk/browser_window_gtk.cc b/chrome/browser/ui/gtk/browser_window_gtk.cc
index 88eb4b5..b268fba 100644
--- a/chrome/browser/ui/gtk/browser_window_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_window_gtk.cc
@@ -1139,7 +1139,7 @@ bool BrowserWindowGtk::GetConstrainedWindowTopY(int* top_y) {
void BrowserWindowGtk::ShowAvatarBubble(WebContents* web_contents,
const gfx::Rect& rect) {
- GtkWidget* widget = web_contents->GetContentNativeView();
+ GtkWidget* widget = web_contents->GetView()->GetContentNativeView();
new AvatarMenuBubbleGtk(browser_.get(), widget,
BubbleGtk::ANCHOR_TOP_LEFT, &rect);
}
@@ -1155,7 +1155,7 @@ void BrowserWindowGtk::ShowPasswordGenerationBubble(
autofill::PasswordGenerator* password_generator) {
WebContents* web_contents =
browser_->tab_strip_model()->GetActiveWebContents();
- if (!web_contents || !web_contents->GetContentNativeView()) {
+ if (!web_contents || !web_contents->GetView()->GetContentNativeView()) {
return;
}
@@ -1979,8 +1979,10 @@ gboolean BrowserWindowGtk::OnKeyPress(GtkWidget* widget, GdkEventKey* event) {
WebContents* current_web_contents =
browser()->tab_strip_model()->GetActiveWebContents();
// The current tab might not have a render view if it crashed.
- if (!current_web_contents || !current_web_contents->GetContentNativeView() ||
- !gtk_widget_is_focus(current_web_contents->GetContentNativeView())) {
+ if (!current_web_contents ||
+ !current_web_contents->GetView()->GetContentNativeView() ||
+ !gtk_widget_is_focus(
+ current_web_contents->GetView()->GetContentNativeView())) {
int command_id = GetCustomCommandId(event);
if (command_id == -1)
command_id = GetPreHandleCommandId(event);