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

Unified Diff: chrome/browser/views/tab_contents/native_tab_contents_container_win.cc

Issue 146093: Relanding focus manager refactoring (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
Index: chrome/browser/views/tab_contents/native_tab_contents_container_win.cc
===================================================================
--- chrome/browser/views/tab_contents/native_tab_contents_container_win.cc (revision 19153)
+++ chrome/browser/views/tab_contents/native_tab_contents_container_win.cc (working copy)
@@ -8,6 +8,8 @@
#include "chrome/browser/tab_contents/interstitial_page.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/views/tab_contents/tab_contents_container.h"
+#include "chrome/browser/views/tab_contents/tab_contents_view_win.h"
+
#include "views/focus/focus_manager.h"
////////////////////////////////////////////////////////////////////////////////
@@ -44,7 +46,7 @@
ShowWindow(container_hwnd, SW_HIDE);
// Reset the parent to NULL to ensure hidden tabs don't receive messages.
- ::SetParent(container_hwnd, NULL);
+ static_cast<TabContentsViewWin*>(contents->view())->Unparent();
}
// Now detach the TabContents.

Powered by Google App Engine
This is Rietveld 408576698