Chromium Code Reviews| 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 <stdint.h> | |
| 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; |
| 14 class SessionStateDelegate; | 16 class SessionStateDelegate; |
| 15 class ScreenPositionController; | 17 class ScreenPositionController; |
| 16 class Shell; | 18 class Shell; |
| 17 class SystemGestureEventFilter; | 19 class SystemGestureEventFilter; |
| 18 class WorkspaceController; | 20 class WorkspaceController; |
| 21 class ScreenRotationAnimator; | |
| 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: |
| 25 explicit ShellTestApi(Shell* shell); | 28 explicit ShellTestApi(Shell* shell); |
| 26 | 29 |
| 27 SystemGestureEventFilter* system_gesture_event_filter(); | 30 SystemGestureEventFilter* system_gesture_event_filter(); |
| 28 WorkspaceController* workspace_controller(); | 31 WorkspaceController* workspace_controller(); |
| 29 ScreenPositionController* screen_position_controller(); | 32 ScreenPositionController* screen_position_controller(); |
| 30 AshNativeCursorManager* ash_native_cursor_manager(); | 33 AshNativeCursorManager* ash_native_cursor_manager(); |
| 31 DragDropController* drag_drop_controller(); | 34 DragDropController* drag_drop_controller(); |
| 32 MaximizeModeWindowManager* maximize_mode_window_manager(); | 35 MaximizeModeWindowManager* maximize_mode_window_manager(); |
| 33 void DisableDisplayAnimator(); | 36 void DisableDisplayAnimator(); |
| 37 ScreenRotationAnimator* GetOrMakeAnimatorByDisplayId(int64_t display_id); | |
|
bruthig
2017/03/02 18:25:45
I think it makes more sense to put these in a Disp
wutao
2017/03/03 02:45:52
Done. Also revised the old test when to access Dis
| |
| 38 int DisplayIdAnimatorMapSize(); | |
| 34 | 39 |
| 35 // Set SessionStateDelegate. | 40 // Set SessionStateDelegate. |
| 36 void SetSessionStateDelegate(SessionStateDelegate* session_state_delegate); | 41 void SetSessionStateDelegate(SessionStateDelegate* session_state_delegate); |
| 37 | 42 |
| 38 private: | 43 private: |
| 39 Shell* shell_; // not owned | 44 Shell* shell_; // not owned |
| 40 | 45 |
| 41 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); | 46 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); |
| 42 }; | 47 }; |
| 43 | 48 |
| 44 } // namespace test | 49 } // namespace test |
| 45 } // namespace ash | 50 } // namespace ash |
| 46 | 51 |
| 47 #endif // ASH_TEST_SHELL_TEST_API_H_ | 52 #endif // ASH_TEST_SHELL_TEST_API_H_ |
| OLD | NEW |