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