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

Side by Side Diff: ash/common/wm_shell.h

Issue 2336653002: Ports SystemModalContainerLayoutManager to ash/common (Closed)
Patch Set: merge again Created 4 years, 3 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/common/wm_root_window_controller.cc ('k') | ash/common/wm_shell.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 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class SystemTrayNotifier; 64 class SystemTrayNotifier;
65 class ToastManager; 65 class ToastManager;
66 class WallpaperController; 66 class WallpaperController;
67 class WallpaperDelegate; 67 class WallpaperDelegate;
68 class WindowCycleController; 68 class WindowCycleController;
69 class WindowCycleEventFilter; 69 class WindowCycleEventFilter;
70 class WindowResizer; 70 class WindowResizer;
71 class WindowSelectorController; 71 class WindowSelectorController;
72 class WmActivationObserver; 72 class WmActivationObserver;
73 class WmDisplayObserver; 73 class WmDisplayObserver;
74 class WmRootWindowController;
74 class WmWindow; 75 class WmWindow;
75 class WorkspaceEventHandler; 76 class WorkspaceEventHandler;
76 77
77 enum class TaskSwitchSource; 78 enum class TaskSwitchSource;
78 79
79 namespace wm { 80 namespace wm {
80 class MaximizeModeEventHandler; 81 class MaximizeModeEventHandler;
81 class WindowState; 82 class WindowState;
82 } 83 }
83 84
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 } 168 }
168 169
169 virtual WmWindow* NewWindow(ui::wm::WindowType window_type, 170 virtual WmWindow* NewWindow(ui::wm::WindowType window_type,
170 ui::LayerType layer_type) = 0; 171 ui::LayerType layer_type) = 0;
171 172
172 virtual WmWindow* GetFocusedWindow() = 0; 173 virtual WmWindow* GetFocusedWindow() = 0;
173 virtual WmWindow* GetActiveWindow() = 0; 174 virtual WmWindow* GetActiveWindow() = 0;
174 175
175 virtual WmWindow* GetCaptureWindow() = 0; 176 virtual WmWindow* GetCaptureWindow() = 0;
176 177
178 // Convenience for GetPrimaryRootWindow()->GetRootWindowController().
179 WmRootWindowController* GetPrimaryRootWindowController();
180
177 virtual WmWindow* GetPrimaryRootWindow() = 0; 181 virtual WmWindow* GetPrimaryRootWindow() = 0;
178 182
179 // Returns the root window for the specified display. 183 // Returns the root window for the specified display.
180 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; 184 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0;
181 185
182 // Returns the root window that newly created windows should be added to. 186 // Returns the root window that newly created windows should be added to.
183 // Value can be temporarily overridden using ScopedRootWindowForNewWindows. 187 // Value can be temporarily overridden using ScopedRootWindowForNewWindows.
184 // NOTE: this returns the root, newly created window should be added to the 188 // NOTE: this returns the root, newly created window should be added to the
185 // appropriate container in the returned window. 189 // appropriate container in the returned window.
186 WmWindow* GetRootWindowForNewWindows(); 190 WmWindow* GetRootWindowForNewWindows();
(...skipping 21 matching lines...) Expand all
208 // the window size. 212 // the window size.
209 virtual bool IsForceMaximizeOnFirstRun() = 0; 213 virtual bool IsForceMaximizeOnFirstRun() = 0;
210 214
211 // Sets work area insets of the display containing |window|, pings observers. 215 // Sets work area insets of the display containing |window|, pings observers.
212 virtual void SetDisplayWorkAreaInsets(WmWindow* window, 216 virtual void SetDisplayWorkAreaInsets(WmWindow* window,
213 const gfx::Insets& insets) = 0; 217 const gfx::Insets& insets) = 0;
214 218
215 // Returns true if a system-modal dialog window is currently open. 219 // Returns true if a system-modal dialog window is currently open.
216 bool IsSystemModalWindowOpen(); 220 bool IsSystemModalWindowOpen();
217 221
222 // Creates a modal background (a partially-opaque fullscreen window) on all
223 // displays for |window|.
224 void CreateModalBackground(WmWindow* window);
225
226 // Called when a modal window is removed. It will activate another modal
227 // window if any, or remove modal screens on all displays.
228 void OnModalWindowRemoved(WmWindow* removed);
229
218 // For testing only: set simulation that a modal window is open 230 // For testing only: set simulation that a modal window is open
219 void SimulateModalWindowOpenForTesting(bool modal_window_open) { 231 void SimulateModalWindowOpenForTesting(bool modal_window_open) {
220 simulate_modal_window_open_for_testing_ = modal_window_open; 232 simulate_modal_window_open_for_testing_ = modal_window_open;
221 } 233 }
222 234
223 // Shows the app list on the active root window. 235 // Shows the app list on the active root window.
224 void ShowAppList(); 236 void ShowAppList();
225 237
226 // Dismisses the app list. 238 // Dismisses the app list.
227 void DismissAppList(); 239 void DismissAppList();
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 462 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
451 463
452 #if defined(OS_CHROMEOS) 464 #if defined(OS_CHROMEOS)
453 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 465 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
454 #endif 466 #endif
455 }; 467 };
456 468
457 } // namespace ash 469 } // namespace ash
458 470
459 #endif // ASH_COMMON_WM_SHELL_H_ 471 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW
« no previous file with comments | « ash/common/wm_root_window_controller.cc ('k') | ash/common/wm_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698