| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace wm { |
| 11 namespace corewm { | |
| 12 class InputMethodEventFilter; | 11 class InputMethodEventFilter; |
| 13 } // namespace corewm | 12 } // namespace wm |
| 14 } // namespace views | |
| 15 | 13 |
| 16 namespace ash { | 14 namespace ash { |
| 17 class AshNativeCursorManager; | 15 class AshNativeCursorManager; |
| 18 class ShelfDelegate; | 16 class ShelfDelegate; |
| 19 class ShelfModel; | 17 class ShelfModel; |
| 20 class Shell; | 18 class Shell; |
| 21 | 19 |
| 22 namespace internal { | 20 namespace internal { |
| 23 class AppListController; | 21 class AppListController; |
| 24 class DragDropController; | 22 class DragDropController; |
| 25 class MaximizeModeWindowManager; | 23 class MaximizeModeWindowManager; |
| 26 class RootWindowLayoutManager; | 24 class RootWindowLayoutManager; |
| 27 class ScreenPositionController; | 25 class ScreenPositionController; |
| 28 class SystemGestureEventFilter; | 26 class SystemGestureEventFilter; |
| 29 class WorkspaceController; | 27 class WorkspaceController; |
| 30 } // namespace internal | 28 } // namespace internal |
| 31 | 29 |
| 32 namespace test { | 30 namespace test { |
| 33 | 31 |
| 34 // Accesses private data from a Shell for testing. | 32 // Accesses private data from a Shell for testing. |
| 35 class ShellTestApi { | 33 class ShellTestApi { |
| 36 public: | 34 public: |
| 37 explicit ShellTestApi(Shell* shell); | 35 explicit ShellTestApi(Shell* shell); |
| 38 | 36 |
| 39 internal::RootWindowLayoutManager* root_window_layout(); | 37 internal::RootWindowLayoutManager* root_window_layout(); |
| 40 views::corewm::InputMethodEventFilter* input_method_event_filter(); | 38 ::wm::InputMethodEventFilter* input_method_event_filter(); |
| 41 internal::SystemGestureEventFilter* system_gesture_event_filter(); | 39 internal::SystemGestureEventFilter* system_gesture_event_filter(); |
| 42 internal::WorkspaceController* workspace_controller(); | 40 internal::WorkspaceController* workspace_controller(); |
| 43 internal::ScreenPositionController* screen_position_controller(); | 41 internal::ScreenPositionController* screen_position_controller(); |
| 44 AshNativeCursorManager* ash_native_cursor_manager(); | 42 AshNativeCursorManager* ash_native_cursor_manager(); |
| 45 ShelfModel* shelf_model(); | 43 ShelfModel* shelf_model(); |
| 46 internal::DragDropController* drag_drop_controller(); | 44 internal::DragDropController* drag_drop_controller(); |
| 47 internal::AppListController* app_list_controller(); | 45 internal::AppListController* app_list_controller(); |
| 48 internal::MaximizeModeWindowManager* maximize_mode_window_manager(); | 46 internal::MaximizeModeWindowManager* maximize_mode_window_manager(); |
| 49 void DisableOutputConfiguratorAnimation(); | 47 void DisableOutputConfiguratorAnimation(); |
| 50 | 48 |
| 51 // Set ShelfDelegate. | 49 // Set ShelfDelegate. |
| 52 void SetShelfDelegate(ShelfDelegate* delegate); | 50 void SetShelfDelegate(ShelfDelegate* delegate); |
| 53 | 51 |
| 54 private: | 52 private: |
| 55 Shell* shell_; // not owned | 53 Shell* shell_; // not owned |
| 56 | 54 |
| 57 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); | 55 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 } // namespace test | 58 } // namespace test |
| 61 } // namespace ash | 59 } // namespace ash |
| 62 | 60 |
| 63 #endif // ASH_TEST_SHELL_TEST_API_H_ | 61 #endif // ASH_TEST_SHELL_TEST_API_H_ |
| OLD | NEW |