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

Unified Diff: ash/wm/ash_native_cursor_manager_unittest.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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: ash/wm/ash_native_cursor_manager_unittest.cc
diff --git a/ash/wm/ash_native_cursor_manager_unittest.cc b/ash/wm/ash_native_cursor_manager_unittest.cc
index 462b647bd529429f2c8082875d2f1f453bea9627..1e26f53a91b21a7e574f04abe882af75ae0aff95 100644
--- a/ash/wm/ash_native_cursor_manager_unittest.cc
+++ b/ash/wm/ash_native_cursor_manager_unittest.cc
@@ -193,12 +193,12 @@ TEST_F(AshNativeCursorManagerTest, DisabledQueryMouseLocation) {
Sleep(100);
RunAllPendingInMessageLoop();
#endif
- aura::WindowEventDispatcher* dispatcher = root_window->GetDispatcher();
+ aura::WindowTreeHost* host = root_window->GetHost();
gfx::Point mouse_location;
- EXPECT_TRUE(dispatcher->host()->QueryMouseLocation(&mouse_location));
+ EXPECT_TRUE(host->QueryMouseLocation(&mouse_location));
EXPECT_EQ("10,10", mouse_location.ToString());
Shell::GetInstance()->cursor_manager()->DisableMouseEvents();
- EXPECT_FALSE(dispatcher->host()->QueryMouseLocation(&mouse_location));
+ EXPECT_FALSE(host->QueryMouseLocation(&mouse_location));
EXPECT_EQ("0,0", mouse_location.ToString());
}
« no previous file with comments | « ash/wm/ash_native_cursor_manager_interactive_uitest.cc ('k') | ash/wm/caption_buttons/frame_maximize_button_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698