OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/wm/ash_native_cursor_manager.h" | 5 #include "ash/wm/ash_native_cursor_manager.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "ash/test/cursor_manager_test_api.h" | 9 #include "ash/test/cursor_manager_test_api.h" |
10 #include "ash/wm/image_cursors.h" | 10 #include "ash/wm/image_cursors.h" |
11 #include "ui/aura/root_window.h" | |
12 #include "ui/aura/test/test_window_delegate.h" | 11 #include "ui/aura/test/test_window_delegate.h" |
13 #include "ui/aura/test/test_windows.h" | 12 #include "ui/aura/test/test_windows.h" |
14 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
| 14 #include "ui/aura/window_event_dispatcher.h" |
15 #include "ui/gfx/screen.h" | 15 #include "ui/gfx/screen.h" |
16 | 16 |
17 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
18 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
19 #include "ui/base/cursor/cursor_loader_win.h" | 19 #include "ui/base/cursor/cursor_loader_win.h" |
20 #endif | 20 #endif |
21 | 21 |
22 using views::corewm::CursorManager; | 22 using views::corewm::CursorManager; |
23 | 23 |
24 namespace ash { | 24 namespace ash { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 gfx::Point mouse_location; | 197 gfx::Point mouse_location; |
198 EXPECT_TRUE(dispatcher->host()->QueryMouseLocation(&mouse_location)); | 198 EXPECT_TRUE(dispatcher->host()->QueryMouseLocation(&mouse_location)); |
199 EXPECT_EQ("10,10", mouse_location.ToString()); | 199 EXPECT_EQ("10,10", mouse_location.ToString()); |
200 Shell::GetInstance()->cursor_manager()->DisableMouseEvents(); | 200 Shell::GetInstance()->cursor_manager()->DisableMouseEvents(); |
201 EXPECT_FALSE(dispatcher->host()->QueryMouseLocation(&mouse_location)); | 201 EXPECT_FALSE(dispatcher->host()->QueryMouseLocation(&mouse_location)); |
202 EXPECT_EQ("0,0", mouse_location.ToString()); | 202 EXPECT_EQ("0,0", mouse_location.ToString()); |
203 } | 203 } |
204 | 204 |
205 } // namespace test | 205 } // namespace test |
206 } // namespace ash | 206 } // namespace ash |
OLD | NEW |