OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_COMMON_WM_SHELL_H_ | 5 #ifndef ASH_COMMON_WM_SHELL_H_ |
6 #define ASH_COMMON_WM_SHELL_H_ | 6 #define ASH_COMMON_WM_SHELL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 13 matching lines...) Expand all Loading... |
24 class AccessibilityDelegate; | 24 class AccessibilityDelegate; |
25 class BrightnessControlDelegate; | 25 class BrightnessControlDelegate; |
26 class DisplayInfo; | 26 class DisplayInfo; |
27 class FocusCycler; | 27 class FocusCycler; |
28 class KeyboardBrightnessControlDelegate; | 28 class KeyboardBrightnessControlDelegate; |
29 class KeyboardUI; | 29 class KeyboardUI; |
30 class MaximizeModeController; | 30 class MaximizeModeController; |
31 class MruWindowTracker; | 31 class MruWindowTracker; |
32 class ScopedDisableInternalMouseAndKeyboard; | 32 class ScopedDisableInternalMouseAndKeyboard; |
33 class SessionStateDelegate; | 33 class SessionStateDelegate; |
| 34 class ShelfModel; |
34 class ShellDelegate; | 35 class ShellDelegate; |
35 class ShellObserver; | 36 class ShellObserver; |
36 class SystemTrayDelegate; | 37 class SystemTrayDelegate; |
37 class SystemTrayNotifier; | 38 class SystemTrayNotifier; |
38 class WindowCycleController; | 39 class WindowCycleController; |
39 class WindowCycleEventFilter; | 40 class WindowCycleEventFilter; |
40 class WindowResizer; | 41 class WindowResizer; |
41 class WindowSelectorController; | 42 class WindowSelectorController; |
42 class WmActivationObserver; | 43 class WmActivationObserver; |
43 class WmDisplayObserver; | 44 class WmDisplayObserver; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 KeyboardUI* keyboard_ui() { return keyboard_ui_.get(); } | 86 KeyboardUI* keyboard_ui() { return keyboard_ui_.get(); } |
86 | 87 |
87 MaximizeModeController* maximize_mode_controller() { | 88 MaximizeModeController* maximize_mode_controller() { |
88 return maximize_mode_controller_.get(); | 89 return maximize_mode_controller_.get(); |
89 } | 90 } |
90 | 91 |
91 MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); } | 92 MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); } |
92 | 93 |
93 MediaDelegate* media_delegate() { return media_delegate_.get(); } | 94 MediaDelegate* media_delegate() { return media_delegate_.get(); } |
94 | 95 |
| 96 ShelfModel* shelf_model() { return shelf_model_.get(); } |
| 97 |
95 SystemTrayNotifier* system_tray_notifier() { | 98 SystemTrayNotifier* system_tray_notifier() { |
96 return system_tray_notifier_.get(); | 99 return system_tray_notifier_.get(); |
97 } | 100 } |
98 | 101 |
99 SystemTrayDelegate* system_tray_delegate() { | 102 SystemTrayDelegate* system_tray_delegate() { |
100 return system_tray_delegate_.get(); | 103 return system_tray_delegate_.get(); |
101 } | 104 } |
102 | 105 |
103 WindowCycleController* window_cycle_controller() { | 106 WindowCycleController* window_cycle_controller() { |
104 return window_cycle_controller_.get(); | 107 return window_cycle_controller_.get(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 virtual bool IsForceMaximizeOnFirstRun() = 0; | 142 virtual bool IsForceMaximizeOnFirstRun() = 0; |
140 | 143 |
141 // Returns true if a system-modal dialog window is currently open. | 144 // Returns true if a system-modal dialog window is currently open. |
142 bool IsSystemModalWindowOpen(); | 145 bool IsSystemModalWindowOpen(); |
143 | 146 |
144 // For testing only: set simulation that a modal window is open | 147 // For testing only: set simulation that a modal window is open |
145 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 148 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
146 simulate_modal_window_open_for_testing_ = modal_window_open; | 149 simulate_modal_window_open_for_testing_ = modal_window_open; |
147 } | 150 } |
148 | 151 |
| 152 // Shows the app list on the active root window. |
| 153 void ShowAppList(); |
| 154 |
| 155 // Dismisses the app list. |
| 156 void DismissAppList(); |
| 157 |
| 158 // Shows the app list if it's not visible. Dismisses it otherwise. |
| 159 void ToggleAppList(); |
| 160 |
| 161 // Returns app list actual visibility. This might differ from |
| 162 // GetAppListTargetVisibility() when hiding animation is still in flight. |
| 163 bool IsApplistVisible() const; |
| 164 |
| 165 // Returns app list target visibility. |
| 166 bool GetAppListTargetVisibility() const; |
| 167 |
149 // Returns true if a window is currently pinned. | 168 // Returns true if a window is currently pinned. |
150 virtual bool IsPinned() = 0; | 169 virtual bool IsPinned() = 0; |
151 | 170 |
152 // Sets/Unsets the |window| to as a pinned window. If this is called with a | 171 // Sets/Unsets the |window| to as a pinned window. If this is called with a |
153 // window with WINDOW_STATE_TYPE_PINNED state, then this sets the |window| | 172 // window with WINDOW_STATE_TYPE_PINNED state, then this sets the |window| |
154 // as a pinned window. Otherwise, this unsets it. | 173 // as a pinned window. Otherwise, this unsets it. |
155 // For setting, a caller needs to guarantee that no windows are set | 174 // For setting, a caller needs to guarantee that no windows are set |
156 // as pinned window. For unsetting, a caller needs to guarantee that the | 175 // as pinned window. For unsetting, a caller needs to guarantee that the |
157 // |window| is the one which is currently set as a pinned window via previous | 176 // |window| is the one which is currently set as a pinned window via previous |
158 // this function invocation. | 177 // this function invocation. |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 289 |
271 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; | 290 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; |
272 std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate_; | 291 std::unique_ptr<BrightnessControlDelegate> brightness_control_delegate_; |
273 std::unique_ptr<FocusCycler> focus_cycler_; | 292 std::unique_ptr<FocusCycler> focus_cycler_; |
274 std::unique_ptr<KeyboardBrightnessControlDelegate> | 293 std::unique_ptr<KeyboardBrightnessControlDelegate> |
275 keyboard_brightness_control_delegate_; | 294 keyboard_brightness_control_delegate_; |
276 std::unique_ptr<KeyboardUI> keyboard_ui_; | 295 std::unique_ptr<KeyboardUI> keyboard_ui_; |
277 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; | 296 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; |
278 std::unique_ptr<MediaDelegate> media_delegate_; | 297 std::unique_ptr<MediaDelegate> media_delegate_; |
279 std::unique_ptr<MruWindowTracker> mru_window_tracker_; | 298 std::unique_ptr<MruWindowTracker> mru_window_tracker_; |
| 299 std::unique_ptr<ShelfModel> shelf_model_; |
280 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; | 300 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; |
281 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; | 301 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; |
282 std::unique_ptr<WindowCycleController> window_cycle_controller_; | 302 std::unique_ptr<WindowCycleController> window_cycle_controller_; |
283 std::unique_ptr<WindowSelectorController> window_selector_controller_; | 303 std::unique_ptr<WindowSelectorController> window_selector_controller_; |
284 | 304 |
285 bool simulate_modal_window_open_for_testing_ = false; | 305 bool simulate_modal_window_open_for_testing_ = false; |
286 | 306 |
287 #if defined(OS_CHROMEOS) | 307 #if defined(OS_CHROMEOS) |
288 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; | 308 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; |
289 #endif | 309 #endif |
290 }; | 310 }; |
291 | 311 |
292 } // namespace ash | 312 } // namespace ash |
293 | 313 |
294 #endif // ASH_COMMON_WM_SHELL_H_ | 314 #endif // ASH_COMMON_WM_SHELL_H_ |
OLD | NEW |