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

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: fix win_aura build 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
« no previous file with comments | « ui/aura/root_window_host_win.cc ('k') | ui/aura/shared/compound_event_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_unittest.cc
diff --git a/ui/aura/root_window_unittest.cc b/ui/aura/root_window_unittest.cc
index 5c8f3f7b1ab40570bbdd28001d0c943fdc630686..20e7cbb2a8071f486cb1beb90008c761f596d366 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);
« no previous file with comments | « ui/aura/root_window_host_win.cc ('k') | ui/aura/shared/compound_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698