diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-09 11:49:14 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-09 11:49:14 +0000 |
commit | 0373b5e3eba9ebb93267536d4985ea9deccf3494 (patch) | |
tree | 6d0cbcf8f27d0784fc95ff63b72ba9457ec06e88 /chrome/browser/views/tab_contents | |
parent | 8cb5d5b5406f5b3c18b7882c27c87938a81b584b (diff) | |
download | chromium_src-0373b5e3eba9ebb93267536d4985ea9deccf3494.zip chromium_src-0373b5e3eba9ebb93267536d4985ea9deccf3494.tar.gz chromium_src-0373b5e3eba9ebb93267536d4985ea9deccf3494.tar.bz2 |
Fix Linux/views/ChromeOS build. There are two tab_contents_view_gtk.cc files
in the tree, and earlier I only fixed one. This fixes the second one.
TBR=brettw
Review URL: http://codereview.chromium.org/602001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tab_contents')
-rw-r--r-- | chrome/browser/views/tab_contents/tab_contents_view_gtk.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc index 51f7057..9fb13b2 100644 --- a/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc +++ b/chrome/browser/views/tab_contents/tab_contents_view_gtk.cc @@ -198,9 +198,10 @@ gfx::NativeView TabContentsViewGtk::GetNativeView() const { } gfx::NativeView TabContentsViewGtk::GetContentNativeView() const { - if (!tab_contents()->render_widget_host_view()) + RenderWidgetHostView* rwhv = tab_contents()->GetRenderWidgetHostView(); + if (!rwhv) return NULL; - return tab_contents()->render_widget_host_view()->GetNativeView(); + return rwhv->GetNativeView(); } gfx::NativeWindow TabContentsViewGtk::GetTopLevelNativeWindow() const { @@ -242,8 +243,9 @@ void TabContentsViewGtk::SizeContents(const gfx::Size& size) { gtk_widget_set_size_request(GetNativeView(), size.width(), size.height()); // We need to send this immediately. - if (tab_contents()->render_widget_host_view()) - tab_contents()->render_widget_host_view()->SetSize(size); + RenderWidgetHostView* rwhv = tab_contents()->GetRenderWidgetHostView(); + if (rwhv) + rwhv->SetSize(size); } void TabContentsViewGtk::Focus() { @@ -257,7 +259,7 @@ void TabContentsViewGtk::Focus() { return; } - RenderWidgetHostView* rwhv = tab_contents()->render_widget_host_view(); + RenderWidgetHostView* rwhv = tab_contents()->GetRenderWidgetHostView(); gtk_widget_grab_focus(rwhv ? rwhv->GetNativeView() : GetNativeView()); } @@ -389,8 +391,9 @@ void TabContentsViewGtk::WasSized(const gfx::Size& size) { size_ = size; if (tab_contents()->interstitial_page()) tab_contents()->interstitial_page()->SetSize(size); - if (tab_contents()->render_widget_host_view()) - tab_contents()->render_widget_host_view()->SetSize(size); + RenderWidgetHostView* rwhv = tab_contents()->GetRenderWidgetHostView(); + if (rwhv) + rwhv->SetSize(size); SetFloatingPosition(size); } |