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 #ifndef ASH_TEST_ASH_TEST_BASE_H_ | 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ |
6 #define ASH_TEST_ASH_TEST_BASE_H_ | 6 #define ASH_TEST_ASH_TEST_BASE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
24 #include "ui/base/win/scoped_ole_initializer.h" | 24 #include "ui/base/win/scoped_ole_initializer.h" |
25 #endif | 25 #endif |
26 | 26 |
27 namespace aura { | 27 namespace aura { |
28 class RootWindow; | 28 class RootWindow; |
29 class Window; | 29 class Window; |
30 class WindowDelegate; | 30 class WindowDelegate; |
31 } // namespace aura | 31 } // namespace aura |
32 | 32 |
| 33 namespace display { |
| 34 class DisplayManager; |
| 35 |
| 36 namespace test { |
| 37 class DisplayManagerTestApi; |
| 38 } // namespace test |
| 39 } // namespace display |
| 40 |
33 namespace gfx { | 41 namespace gfx { |
34 class Rect; | 42 class Rect; |
35 } | 43 } |
36 | 44 |
37 namespace ui { | 45 namespace ui { |
38 namespace test { | 46 namespace test { |
39 class EventGenerator; | 47 class EventGenerator; |
40 } | 48 } |
41 } | 49 } |
42 | 50 |
43 namespace views { | 51 namespace views { |
44 class Widget; | 52 class Widget; |
45 class WidgetDelegate; | 53 class WidgetDelegate; |
46 } | 54 } |
47 | 55 |
48 namespace ash { | 56 namespace ash { |
49 class AshTestImplAura; | 57 class AshTestImplAura; |
50 class DisplayManager; | |
51 class SystemTray; | 58 class SystemTray; |
52 class WmShelf; | 59 class WmShelf; |
53 | 60 |
54 namespace test { | 61 namespace test { |
55 | 62 |
56 class AshTestEnvironment; | 63 class AshTestEnvironment; |
57 class AshTestHelper; | 64 class AshTestHelper; |
58 class TestScreenshotDelegate; | 65 class TestScreenshotDelegate; |
59 class TestSystemTrayDelegate; | 66 class TestSystemTrayDelegate; |
60 | 67 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 115 |
109 // Attach |window| to the current shell's root window. | 116 // Attach |window| to the current shell's root window. |
110 void ParentWindowInPrimaryRootWindow(aura::Window* window); | 117 void ParentWindowInPrimaryRootWindow(aura::Window* window); |
111 | 118 |
112 // Returns the EventGenerator that uses screen coordinates and works | 119 // Returns the EventGenerator that uses screen coordinates and works |
113 // across multiple displays. It createse a new generator if it | 120 // across multiple displays. It createse a new generator if it |
114 // hasn't been created yet. | 121 // hasn't been created yet. |
115 ui::test::EventGenerator& GetEventGenerator(); | 122 ui::test::EventGenerator& GetEventGenerator(); |
116 | 123 |
117 // Convenience method to return the DisplayManager. | 124 // Convenience method to return the DisplayManager. |
118 DisplayManager* display_manager(); | 125 display::DisplayManager* display_manager(); |
119 | 126 |
120 // Test if moving a mouse to |point_in_screen| warps it to another | 127 // Test if moving a mouse to |point_in_screen| warps it to another |
121 // display. | 128 // display. |
122 bool TestIfMouseWarpsAt(ui::test::EventGenerator& event_generator, | 129 bool TestIfMouseWarpsAt(ui::test::EventGenerator& event_generator, |
123 const gfx::Point& point_in_screen); | 130 const gfx::Point& point_in_screen); |
124 | 131 |
125 protected: | 132 protected: |
126 enum UserSessionBlockReason { | 133 enum UserSessionBlockReason { |
127 FIRST_BLOCK_REASON, | 134 FIRST_BLOCK_REASON, |
128 BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON, | 135 BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 ~NoSessionAshTestBase() override {} | 209 ~NoSessionAshTestBase() override {} |
203 | 210 |
204 private: | 211 private: |
205 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 212 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
206 }; | 213 }; |
207 | 214 |
208 } // namespace test | 215 } // namespace test |
209 } // namespace ash | 216 } // namespace ash |
210 | 217 |
211 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 218 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
OLD | NEW |