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

Unified Diff: ash/display/mouse_cursor_event_filter_unittest.cc

Issue 902123002: Fix initial hiding and centering cursor on Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/display/mouse_cursor_event_filter_unittest.cc
diff --git a/ash/display/mouse_cursor_event_filter_unittest.cc b/ash/display/mouse_cursor_event_filter_unittest.cc
index 3b4f9ee83a4247bc8f3bfff2a14a643b40ee7aa8..62300a54058c56c4ae5f2aa3b35e14caf54cd59d 100644
--- a/ash/display/mouse_cursor_event_filter_unittest.cc
+++ b/ash/display/mouse_cursor_event_filter_unittest.cc
@@ -116,7 +116,7 @@ TEST_F(MouseCursorEventFilterTest, WarpMouseDifferentSizeDisplays) {
GetCurrentDisplayLayout().position);
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
- aura::Env::GetInstance()->set_last_mouse_location(gfx::Point(623, 123));
+ aura::Env::GetInstance()->SetLastMouseLocation(gfx::Point(623, 123));
// Touch the left edge of the secondary root window. Pointer should NOT warp
// because 1px left of (0, 500) is outside the primary root window.
@@ -148,7 +148,7 @@ TEST_F(MouseCursorEventFilterTest, WarpMouseDifferentScaleDisplaysInNative) {
.position);
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
- aura::Env::GetInstance()->set_last_mouse_location(gfx::Point(900, 123));
+ aura::Env::GetInstance()->SetLastMouseLocation(gfx::Point(900, 123));
EXPECT_TRUE(event_filter()->WarpMouseCursorIfNecessaryForTest(
root_windows[0], gfx::Point(499, 123)));
@@ -173,7 +173,7 @@ TEST_F(MouseCursorEventFilterTest, SetMouseWarpModeFlag) {
UpdateDisplay("500x500,500x500");
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
- aura::Env::GetInstance()->set_last_mouse_location(gfx::Point(1, 1));
+ aura::Env::GetInstance()->SetLastMouseLocation(gfx::Point(1, 1));
event_filter()->set_mouse_warp_mode(MouseCursorEventFilter::WARP_NONE);
EXPECT_FALSE(WarpMouseCursorIfNecessary(root_windows[0],

Powered by Google App Engine
This is Rietveld 408576698