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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 class AshNativeCursorManager; | 13 class AshNativeCursorManager; |
14 class DragDropController; | 14 class DragDropController; |
15 class TabletModeWindowManager; | 15 class MaximizeModeWindowManager; |
16 class PaletteDelegate; | 16 class PaletteDelegate; |
17 class SessionStateDelegate; | 17 class SessionStateDelegate; |
18 class ScreenPositionController; | 18 class ScreenPositionController; |
19 class Shell; | 19 class Shell; |
20 class SystemGestureEventFilter; | 20 class SystemGestureEventFilter; |
21 class WorkspaceController; | 21 class WorkspaceController; |
22 | 22 |
23 namespace test { | 23 namespace test { |
24 | 24 |
25 // Accesses private data from a Shell for testing. | 25 // Accesses private data from a Shell for testing. |
26 class ShellTestApi { | 26 class ShellTestApi { |
27 public: | 27 public: |
28 ShellTestApi(); | 28 ShellTestApi(); |
29 explicit ShellTestApi(Shell* shell); | 29 explicit ShellTestApi(Shell* shell); |
30 | 30 |
31 SystemGestureEventFilter* system_gesture_event_filter(); | 31 SystemGestureEventFilter* system_gesture_event_filter(); |
32 WorkspaceController* workspace_controller(); | 32 WorkspaceController* workspace_controller(); |
33 ScreenPositionController* screen_position_controller(); | 33 ScreenPositionController* screen_position_controller(); |
34 AshNativeCursorManager* ash_native_cursor_manager(); | 34 AshNativeCursorManager* ash_native_cursor_manager(); |
35 DragDropController* drag_drop_controller(); | 35 DragDropController* drag_drop_controller(); |
36 TabletModeWindowManager* tablet_mode_window_manager(); | 36 MaximizeModeWindowManager* maximize_mode_window_manager(); |
37 | 37 |
38 void SetPaletteDelegate(std::unique_ptr<PaletteDelegate> palette_delegate); | 38 void SetPaletteDelegate(std::unique_ptr<PaletteDelegate> palette_delegate); |
39 void SetSessionStateDelegate(SessionStateDelegate* session_state_delegate); | 39 void SetSessionStateDelegate(SessionStateDelegate* session_state_delegate); |
40 | 40 |
41 private: | 41 private: |
42 Shell* shell_; // not owned | 42 Shell* shell_; // not owned |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); | 44 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace test | 47 } // namespace test |
48 } // namespace ash | 48 } // namespace ash |
49 | 49 |
50 #endif // ASH_TEST_SHELL_TEST_API_H_ | 50 #endif // ASH_TEST_SHELL_TEST_API_H_ |
OLD | NEW |