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