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