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

Unified Diff: ash/wm/window_manager_unittest.cc

Issue 11412315: Make the cursor have separate mode for disabled mouse events and invisible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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/window_manager_unittest.cc
diff --git a/ash/wm/window_manager_unittest.cc b/ash/wm/window_manager_unittest.cc
index 98568e4189b8a3d90593220f00642bf7cb00dde5..23ebd1a5d216ecd975dea65dede10bbccd4bf00e 100644
--- a/ash/wm/window_manager_unittest.cc
+++ b/ash/wm/window_manager_unittest.cc
@@ -663,9 +663,9 @@ TEST_F(WindowManagerTest, UpdateCursorVisibility) {
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_released1);
EXPECT_TRUE(cursor_manager->IsCursorVisible());
- // If someone else made cursor invisible keep it invisible even after it
+ // If someone else made cursor disabled keep it invisible even after it
// received mouse events.
- cursor_manager->ShowCursor(false);
+ cursor_manager->EnableCursor(false);
root_window->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse_moved);
EXPECT_FALSE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_pressed2);
@@ -676,7 +676,7 @@ TEST_F(WindowManagerTest, UpdateCursorVisibility) {
EXPECT_FALSE(cursor_manager->IsCursorVisible());
// Back to normal.
- cursor_manager->ShowCursor(true);
+ cursor_manager->EnableCursor(true);
root_window->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse_moved);
EXPECT_TRUE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_pressed2);

Powered by Google App Engine
This is Rietveld 408576698