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