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