[email protected] | 0c68e89 | 2012-12-08 16:54:53 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef ASH_TEST_SHELL_TEST_API_H_ | ||||
6 | #define ASH_TEST_SHELL_TEST_API_H_ | ||||
7 | |||||
avi | db567a8a | 2015-12-20 17:07:24 | [diff] [blame] | 8 | #include "base/macros.h" |
[email protected] | 0c68e89 | 2012-12-08 16:54:53 | [diff] [blame] | 9 | |
mfomitchev | 493ed60 | 2016-04-09 00:48:39 | [diff] [blame] | 10 | namespace app_list { |
mfomitchev | da899d8 | 2016-04-15 22:20:37 | [diff] [blame] | 11 | class AppListPresenter; |
mfomitchev | 493ed60 | 2016-04-09 00:48:39 | [diff] [blame] | 12 | } |
13 | |||||
[email protected] | 0c68e89 | 2012-12-08 16:54:53 | [diff] [blame] | 14 | namespace ash { |
[email protected] | 093b8d64 | 2014-04-03 20:59:28 | [diff] [blame] | 15 | class AshNativeCursorManager; |
[email protected] | c086bab | 2013-06-06 21:46:44 | [diff] [blame] | 16 | class DragDropController; |
[email protected] | e55b7345 | 2014-02-20 13:18:04 | [diff] [blame] | 17 | class MaximizeModeWindowManager; |
[email protected] | 7570bba | 2014-08-08 08:04:47 | [diff] [blame] | 18 | class SessionStateDelegate; |
[email protected] | 0c68e89 | 2012-12-08 16:54:53 | [diff] [blame] | 19 | class ScreenPositionController; |
[email protected] | 093b8d64 | 2014-04-03 20:59:28 | [diff] [blame] | 20 | class ShelfDelegate; |
21 | class ShelfModel; | ||||
22 | class Shell; | ||||
[email protected] | 0c68e89 | 2012-12-08 16:54:53 | [diff] [blame] | 23 | class SystemGestureEventFilter; |
24 | class WorkspaceController; | ||||
[email protected] | 0c68e89 | 2012-12-08 16:54:53 | [diff] [blame] | 25 | |
26 | namespace test { | ||||
27 | |||||
28 | // Accesses private data from a Shell for testing. | ||||
29 | class ShellTestApi { | ||||
jamescook | b8dcef52 | 2016-06-25 14:42:55 | [diff] [blame^] | 30 | public: |
[email protected] | 0c68e89 | 2012-12-08 16:54:53 | [diff] [blame] | 31 | explicit ShellTestApi(Shell* shell); |
32 | |||||
[email protected] | 093b8d64 | 2014-04-03 20:59:28 | [diff] [blame] | 33 | SystemGestureEventFilter* system_gesture_event_filter(); |
34 | WorkspaceController* workspace_controller(); | ||||
35 | ScreenPositionController* screen_position_controller(); | ||||
[email protected] | c0ff034 | 2013-02-27 00:41:29 | [diff] [blame] | 36 | AshNativeCursorManager* ash_native_cursor_manager(); |
[email protected] | 64936bf | 2013-11-14 19:48:36 | [diff] [blame] | 37 | ShelfModel* shelf_model(); |
[email protected] | 093b8d64 | 2014-04-03 20:59:28 | [diff] [blame] | 38 | DragDropController* drag_drop_controller(); |
mfomitchev | da899d8 | 2016-04-15 22:20:37 | [diff] [blame] | 39 | app_list::AppListPresenter* app_list_presenter(); |
[email protected] | 093b8d64 | 2014-04-03 20:59:28 | [diff] [blame] | 40 | MaximizeModeWindowManager* maximize_mode_window_manager(); |
stevenjb | f402ac5 | 2016-01-16 00:30:49 | [diff] [blame] | 41 | void DisableDisplayAnimator(); |
[email protected] | 945ece96 | 2013-03-21 06:42:39 | [diff] [blame] | 42 | |
[email protected] | 8b57e94 | 2013-12-09 19:39:20 | [diff] [blame] | 43 | // Set ShelfDelegate. |
44 | void SetShelfDelegate(ShelfDelegate* delegate); | ||||
[email protected] | 341f9e1 | 2013-11-09 04:10:30 | [diff] [blame] | 45 | |
[email protected] | 7570bba | 2014-08-08 08:04:47 | [diff] [blame] | 46 | // Set SessionStateDelegate. |
47 | void SetSessionStateDelegate(SessionStateDelegate* session_state_delegate); | ||||
48 | |||||
[email protected] | 0c68e89 | 2012-12-08 16:54:53 | [diff] [blame] | 49 | private: |
50 | Shell* shell_; // not owned | ||||
51 | |||||
52 | DISALLOW_COPY_AND_ASSIGN(ShellTestApi); | ||||
53 | }; | ||||
54 | |||||
55 | } // namespace test | ||||
56 | } // namespace ash | ||||
57 | |||||
58 | #endif // ASH_TEST_SHELL_TEST_API_H_ |