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