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

Unified Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc

Issue 7059017: Fix paint flashing when switching tabs on ChromeOS. It seems like this hidden tab host window isn... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 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 | « no previous file | views/widget/native_widget_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc
===================================================================
--- chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc (revision 86286)
+++ chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc (working copy)
@@ -57,22 +57,6 @@
return FALSE;
}
-gfx::NativeView GetHiddenTabHostWindow() {
- static views::Widget* widget = NULL;
-
- if (!widget) {
- widget = new views::Widget;
- // We don't want this widget to be closed automatically, this causes
- // problems in tests that close the last non-secondary window.
- widget->set_is_secondary_widget(false);
- views::Widget::InitParams params(views::Widget::InitParams::TYPE_POPUP);
- widget->Init(params);
- }
-
- return static_cast<views::NativeWidgetGtk*>(widget->native_widget())->
- window_contents();
-}
-
} // namespace
////////////////////////////////////////////////////////////////////////////////
@@ -130,9 +114,6 @@
}
void NativeTabContentsViewGtk::Unparent() {
- // Note that we do not DCHECK on focus_manager_ as it may be NULL when used
- // with an external tab container.
- NativeWidget::ReparentNativeView(GetNativeView(), GetHiddenTabHostWindow());
}
RenderWidgetHostView* NativeTabContentsViewGtk::CreateRenderWidgetHostView(
« no previous file with comments | « no previous file | views/widget/native_widget_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698