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 NativeCursorManagerAsh; |
14 class DragDropController; | 14 class DragDropController; |
15 class MaximizeModeWindowManager; | 15 class MaximizeModeWindowManager; |
16 class PaletteDelegate; | 16 class PaletteDelegate; |
17 class ScreenPositionController; | 17 class ScreenPositionController; |
18 class Shell; | 18 class Shell; |
19 class SystemGestureEventFilter; | 19 class SystemGestureEventFilter; |
20 class WorkspaceController; | 20 class WorkspaceController; |
21 | 21 |
22 namespace test { | 22 namespace test { |
23 | 23 |
24 // Accesses private data from a Shell for testing. | 24 // Accesses private data from a Shell for testing. |
25 class ShellTestApi { | 25 class ShellTestApi { |
26 public: | 26 public: |
27 ShellTestApi(); | 27 ShellTestApi(); |
28 explicit ShellTestApi(Shell* shell); | 28 explicit ShellTestApi(Shell* shell); |
29 | 29 |
30 SystemGestureEventFilter* system_gesture_event_filter(); | 30 SystemGestureEventFilter* system_gesture_event_filter(); |
31 WorkspaceController* workspace_controller(); | 31 WorkspaceController* workspace_controller(); |
32 ScreenPositionController* screen_position_controller(); | 32 ScreenPositionController* screen_position_controller(); |
33 AshNativeCursorManager* ash_native_cursor_manager(); | 33 NativeCursorManagerAsh* ash_native_cursor_manager(); |
James Cook
2017/06/13 00:49:26
nit: rename method too
Elliot Glaysher
2017/06/13 18:05:45
Done.
| |
34 DragDropController* drag_drop_controller(); | 34 DragDropController* drag_drop_controller(); |
35 MaximizeModeWindowManager* maximize_mode_window_manager(); | 35 MaximizeModeWindowManager* maximize_mode_window_manager(); |
36 | 36 |
37 void SetPaletteDelegate(std::unique_ptr<PaletteDelegate> palette_delegate); | 37 void SetPaletteDelegate(std::unique_ptr<PaletteDelegate> palette_delegate); |
38 | 38 |
39 private: | 39 private: |
40 Shell* shell_; // not owned | 40 Shell* shell_; // not owned |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); | 42 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace test | 45 } // namespace test |
46 } // namespace ash | 46 } // namespace ash |
47 | 47 |
48 #endif // ASH_TEST_SHELL_TEST_API_H_ | 48 #endif // ASH_TEST_SHELL_TEST_API_H_ |
OLD | NEW |