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

Unified Diff: ui/aura/root_window_unittest.cc

Issue 11035050: Enable CursorManager::LockCursor to lock cursor visibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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: ui/aura/root_window_unittest.cc
diff --git a/ui/aura/root_window_unittest.cc b/ui/aura/root_window_unittest.cc
index cc7a72948aa6495e7b71a47a41ac3ceb19322d24..33e93d87708420e493ca82937010f84b80f9c21d 100644
--- a/ui/aura/root_window_unittest.cc
+++ b/ui/aura/root_window_unittest.cc
@@ -189,7 +189,7 @@ TEST_F(RootWindowTest, HideCursor) {
delegate.get(), -1234, bounds, NULL));
aura::Window* window_ptr = &*window;
- root_window()->ShowCursor(true);
+ root_window()->OnCursorVisibilityChanged(true);
// Send a mouse event to window.
gfx::Point point(101, 201);
gfx::Point local_point;
@@ -202,14 +202,14 @@ TEST_F(RootWindowTest, HideCursor) {
EXPECT_TRUE(window->bounds().Contains(local_point));
// Location is now out of window.
- root_window()->ShowCursor(false);
+ root_window()->OnCursorVisibilityChanged(false);
RunAllPendingInMessageLoop();
local_point = delegate->mouse_event_location();
aura::Window::ConvertPointToTarget(window_ptr, root_window(), &local_point);
EXPECT_FALSE(window->bounds().Contains(local_point));
// Location is back in window.
- root_window()->ShowCursor(true);
+ root_window()->OnCursorVisibilityChanged(true);
RunAllPendingInMessageLoop();
local_point = delegate->mouse_event_location();
aura::Window::ConvertPointToTarget(window_ptr, root_window(), &local_point);

Powered by Google App Engine
This is Rietveld 408576698