Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: ash/test/shell_test_api.h

Issue 2183483002: Clean up ash::ShellTestApi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/shelf/shelf_window_watcher_unittest.cc ('k') | ash/test/shell_test_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/macros.h" 8 #include "base/macros.h"
9 9
10 namespace app_list {
11 class AppListPresenter;
12 }
13
14 namespace ash { 10 namespace ash {
15 class AshNativeCursorManager; 11 class AshNativeCursorManager;
16 class DragDropController; 12 class DragDropController;
17 class MaximizeModeWindowManager; 13 class MaximizeModeWindowManager;
18 class SessionStateDelegate; 14 class SessionStateDelegate;
19 class ScreenPositionController; 15 class ScreenPositionController;
20 class ShelfDelegate;
21 class ShelfModel;
22 class Shell; 16 class Shell;
23 class SystemGestureEventFilter; 17 class SystemGestureEventFilter;
24 class WorkspaceController; 18 class WorkspaceController;
25 19
26 namespace test { 20 namespace test {
27 21
28 // Accesses private data from a Shell for testing. 22 // Accesses private data from a Shell for testing.
29 class ShellTestApi { 23 class ShellTestApi {
30 public: 24 public:
31 explicit ShellTestApi(Shell* shell); 25 explicit ShellTestApi(Shell* shell);
32 26
33 SystemGestureEventFilter* system_gesture_event_filter(); 27 SystemGestureEventFilter* system_gesture_event_filter();
34 WorkspaceController* workspace_controller(); 28 WorkspaceController* workspace_controller();
35 ScreenPositionController* screen_position_controller(); 29 ScreenPositionController* screen_position_controller();
36 AshNativeCursorManager* ash_native_cursor_manager(); 30 AshNativeCursorManager* ash_native_cursor_manager();
37 ShelfModel* shelf_model();
38 DragDropController* drag_drop_controller(); 31 DragDropController* drag_drop_controller();
39 app_list::AppListPresenter* app_list_presenter();
40 MaximizeModeWindowManager* maximize_mode_window_manager(); 32 MaximizeModeWindowManager* maximize_mode_window_manager();
41 void DisableDisplayAnimator(); 33 void DisableDisplayAnimator();
42 34
43 // Set SessionStateDelegate. 35 // Set SessionStateDelegate.
44 void SetSessionStateDelegate(SessionStateDelegate* session_state_delegate); 36 void SetSessionStateDelegate(SessionStateDelegate* session_state_delegate);
45 37
46 private: 38 private:
47 Shell* shell_; // not owned 39 Shell* shell_; // not owned
48 40
49 DISALLOW_COPY_AND_ASSIGN(ShellTestApi); 41 DISALLOW_COPY_AND_ASSIGN(ShellTestApi);
50 }; 42 };
51 43
52 } // namespace test 44 } // namespace test
53 } // namespace ash 45 } // namespace ash
54 46
55 #endif // ASH_TEST_SHELL_TEST_API_H_ 47 #endif // ASH_TEST_SHELL_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_window_watcher_unittest.cc ('k') | ash/test/shell_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698