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

Unified Diff: chrome/test/base/interactive_test_utils_win.cc

Issue 37733003: Make GetRootWindow() return a Window instead of a RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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/test/base/interactive_test_utils_win.cc
diff --git a/chrome/test/base/interactive_test_utils_win.cc b/chrome/test/base/interactive_test_utils_win.cc
index 345d48b0675e7e66eb328a9cde977163091f7faa..7a4f747aaaa3303683c1be4b0752f876bb201450 100644
--- a/chrome/test/base/interactive_test_utils_win.cc
+++ b/chrome/test/base/interactive_test_utils_win.cc
@@ -29,7 +29,7 @@ void HideNativeWindow(gfx::NativeWindow window) {
HideNativeWindowAura(window);
return;
}
- HWND hwnd = window->GetRootWindow()->GetAcceleratedWidget();
+ HWND hwnd = window->GetDispatcher()->GetAcceleratedWidget();
#else
HWND hwnd = window;
#endif
@@ -43,7 +43,7 @@ bool ShowAndFocusNativeWindow(gfx::NativeWindow window) {
ShowAndFocusNativeWindowAura(window);
window->Show();
// Always make sure the window hosting ash is visible and focused.
- HWND hwnd = window->GetRootWindow()->GetAcceleratedWidget();
+ HWND hwnd = window->GetDispatcher()->GetAcceleratedWidget();
#else
HWND hwnd = window;
#endif

Powered by Google App Engine
This is Rietveld 408576698