| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef ASH_TEST_SHELL_TEST_API_H_ |
| #define ASH_TEST_SHELL_TEST_API_H_ |
| |
| #include <memory> |
| |
| #include "base/macros.h" |
| |
| namespace ash { |
| class AshNativeCursorManager; |
| class DragDropController; |
| class MaximizeModeWindowManager; |
| class PaletteDelegate; |
| class SessionStateDelegate; |
| class ScreenPositionController; |
| class ShelfDelegate; |
| class Shell; |
| class SystemGestureEventFilter; |
| class WorkspaceController; |
| |
| namespace test { |
| |
| // Accesses private data from a Shell for testing. |
| class ShellTestApi { |
| public: |
| ShellTestApi(); |
| explicit ShellTestApi(Shell* shell); |
| |
| SystemGestureEventFilter* system_gesture_event_filter(); |
| WorkspaceController* workspace_controller(); |
| ScreenPositionController* screen_position_controller(); |
| AshNativeCursorManager* ash_native_cursor_manager(); |
| DragDropController* drag_drop_controller(); |
| MaximizeModeWindowManager* maximize_mode_window_manager(); |
| |
| void SetPaletteDelegate(std::unique_ptr<PaletteDelegate> palette_delegate); |
| void SetSessionStateDelegate(SessionStateDelegate* session_state_delegate); |
| void SetShelfDelegate(std::unique_ptr<ShelfDelegate> test_delegate); |
| |
| private: |
| Shell* shell_; // not owned |
| |
| DISALLOW_COPY_AND_ASSIGN(ShellTestApi); |
| }; |
| |
| } // namespace test |
| } // namespace ash |
| |
| #endif // ASH_TEST_SHELL_TEST_API_H_ |