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/display/display_manager.h" | |
8 #include "ash/display/display_util.h" | 7 #include "ash/display/display_util.h" |
9 #include "ash/shell.h" | 8 #include "ash/shell.h" |
10 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
11 #include "ash/test/cursor_manager_test_api.h" | 10 #include "ash/test/cursor_manager_test_api.h" |
12 #include "ui/aura/test/aura_test_utils.h" | 11 #include "ui/aura/test/aura_test_utils.h" |
13 #include "ui/aura/test/test_window_delegate.h" | 12 #include "ui/aura/test/test_window_delegate.h" |
14 #include "ui/aura/test/test_windows.h" | 13 #include "ui/aura/test/test_windows.h" |
15 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
16 #include "ui/aura/window_event_dispatcher.h" | 15 #include "ui/aura/window_event_dispatcher.h" |
17 #include "ui/base/cursor/image_cursors.h" | 16 #include "ui/base/cursor/image_cursors.h" |
| 17 #include "ui/display/manager/display_manager.h" |
18 #include "ui/display/screen.h" | 18 #include "ui/display/screen.h" |
19 | 19 |
20 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
21 #include "base/win/windows_version.h" | 21 #include "base/win/windows_version.h" |
22 #include "ui/base/cursor/cursor_loader_win.h" | 22 #include "ui/base/cursor/cursor_loader_win.h" |
23 #endif | 23 #endif |
24 | 24 |
25 #if defined(USE_X11) | 25 #if defined(USE_X11) |
26 #include "ui/base/cursor/cursor_loader_x11.h" | 26 #include "ui/base/cursor/cursor_loader_x11.h" |
27 #include "ui/resources/grit/ui_resources.h" | 27 #include "ui/resources/grit/ui_resources.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 loader.set_scale(2.0f); | 222 loader.set_scale(2.0f); |
223 loader.LoadImageCursor(kCursorId, IDR_AURA_CURSOR_MOVE, gfx::Point()); | 223 loader.LoadImageCursor(kCursorId, IDR_AURA_CURSOR_MOVE, gfx::Point()); |
224 image = loader.GetXcursorImageForTest(kCursorId); | 224 image = loader.GetXcursorImageForTest(kCursorId); |
225 EXPECT_EQ(height * 2, static_cast<int>(image->height)); | 225 EXPECT_EQ(height * 2, static_cast<int>(image->height)); |
226 EXPECT_EQ(width * 2, static_cast<int>(image->width)); | 226 EXPECT_EQ(width * 2, static_cast<int>(image->width)); |
227 } | 227 } |
228 #endif | 228 #endif |
229 | 229 |
230 } // namespace test | 230 } // namespace test |
231 } // namespace ash | 231 } // namespace ash |
OLD | NEW |