summaryrefslogtreecommitdiffstats
path: root/ui/aura/root_window_unittest.cc
diff options
context:
space:
mode:
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-12 18:55:23 +0000
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-12 18:55:23 +0000
commit60c262022cb339a122533e88a7c6f2c3c8f1c96e (patch)
treeb13489e89b87ab5cd2cf816653f42c544b28240d /ui/aura/root_window_unittest.cc
parent4cdfc9eb6233602313079f66d45a8b168f5b2947 (diff)
downloadchromium_src-60c262022cb339a122533e88a7c6f2c3c8f1c96e.zip
chromium_src-60c262022cb339a122533e88a7c6f2c3c8f1c96e.tar.gz
chromium_src-60c262022cb339a122533e88a7c6f2c3c8f1c96e.tar.bz2
Enable CursorManager::LockCursor to lock cursor visibility.
This CL changes mainly three parts: - Add LockCursor and UnlockCursor to CursorClient. - Move the code to change cursor visibility from aura::RootWindow and aura::RootWindowHostLinux to ash::CursorManager. - Remove CursorDelegate, which was too much simple delegation and unnecessary. BUG=153702 TEST=CursorManagerTest.ShowCursor Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161454 Review URL: https://chromiumcodereview.appspot.com/11035050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161629 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/root_window_unittest.cc')
-rw-r--r--ui/aura/root_window_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/aura/root_window_unittest.cc b/ui/aura/root_window_unittest.cc
index 5c8f3f7..20e7cbb 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);