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