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_SHELL_TEST_API_H_ | 5 #ifndef ASH_TEST_SHELL_TEST_API_H_ |
6 #define ASH_TEST_SHELL_TEST_API_H_ | 6 #define ASH_TEST_SHELL_TEST_API_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 namespace wm { | |
11 class InputMethodEventFilter; | |
James Cook
2015/06/03 16:34:27
Thanks for cleaning up forward declares when remov
| |
12 } // namespace wm | |
13 | |
14 namespace ash { | 10 namespace ash { |
15 class AppListController; | 11 class AppListController; |
16 class AshNativeCursorManager; | 12 class AshNativeCursorManager; |
17 class DragDropController; | 13 class DragDropController; |
18 class MaximizeModeWindowManager; | 14 class MaximizeModeWindowManager; |
19 class RootWindowLayoutManager; | 15 class RootWindowLayoutManager; |
20 class SessionStateDelegate; | 16 class SessionStateDelegate; |
21 class ScreenPositionController; | 17 class ScreenPositionController; |
22 class ShelfDelegate; | 18 class ShelfDelegate; |
23 class ShelfModel; | 19 class ShelfModel; |
24 class Shell; | 20 class Shell; |
25 class SystemGestureEventFilter; | 21 class SystemGestureEventFilter; |
26 class WorkspaceController; | 22 class WorkspaceController; |
27 | 23 |
28 namespace test { | 24 namespace test { |
29 | 25 |
30 // Accesses private data from a Shell for testing. | 26 // Accesses private data from a Shell for testing. |
31 class ShellTestApi { | 27 class ShellTestApi { |
32 public: | 28 public: |
33 explicit ShellTestApi(Shell* shell); | 29 explicit ShellTestApi(Shell* shell); |
34 | 30 |
35 RootWindowLayoutManager* root_window_layout(); | 31 RootWindowLayoutManager* root_window_layout(); |
36 ::wm::InputMethodEventFilter* input_method_event_filter(); | |
37 SystemGestureEventFilter* system_gesture_event_filter(); | 32 SystemGestureEventFilter* system_gesture_event_filter(); |
38 WorkspaceController* workspace_controller(); | 33 WorkspaceController* workspace_controller(); |
39 ScreenPositionController* screen_position_controller(); | 34 ScreenPositionController* screen_position_controller(); |
40 AshNativeCursorManager* ash_native_cursor_manager(); | 35 AshNativeCursorManager* ash_native_cursor_manager(); |
41 ShelfModel* shelf_model(); | 36 ShelfModel* shelf_model(); |
42 DragDropController* drag_drop_controller(); | 37 DragDropController* drag_drop_controller(); |
43 AppListController* app_list_controller(); | 38 AppListController* app_list_controller(); |
44 MaximizeModeWindowManager* maximize_mode_window_manager(); | 39 MaximizeModeWindowManager* maximize_mode_window_manager(); |
45 void DisableDisplayConfiguratorAnimation(); | 40 void DisableDisplayConfiguratorAnimation(); |
46 | 41 |
47 // Set ShelfDelegate. | 42 // Set ShelfDelegate. |
48 void SetShelfDelegate(ShelfDelegate* delegate); | 43 void SetShelfDelegate(ShelfDelegate* delegate); |
49 | 44 |
50 // Set SessionStateDelegate. | 45 // Set SessionStateDelegate. |
51 void SetSessionStateDelegate(SessionStateDelegate* session_state_delegate); | 46 void SetSessionStateDelegate(SessionStateDelegate* session_state_delegate); |
52 | 47 |
53 private: | 48 private: |
54 Shell* shell_; // not owned | 49 Shell* shell_; // not owned |
55 | 50 |
56 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); | 51 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); |
57 }; | 52 }; |
58 | 53 |
59 } // namespace test | 54 } // namespace test |
60 } // namespace ash | 55 } // namespace ash |
61 | 56 |
62 #endif // ASH_TEST_SHELL_TEST_API_H_ | 57 #endif // ASH_TEST_SHELL_TEST_API_H_ |
OLD | NEW |