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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell.h
diff --git a/ash/common/wm_shell.h b/ash/common/wm_shell.h
index 7850f84321efe5faaeaedc6e753b869b6142ed93..00ac9ada5f2b5bd9f7386dd12d2f3a424533005f 100644
--- a/ash/common/wm_shell.h
+++ b/ash/common/wm_shell.h
@@ -71,6 +71,7 @@ class WindowResizer;
class WindowSelectorController;
class WmActivationObserver;
class WmDisplayObserver;
+class WmRootWindowController;
class WmWindow;
class WorkspaceEventHandler;
@@ -174,6 +175,9 @@ class ASH_EXPORT WmShell {
virtual WmWindow* GetCaptureWindow() = 0;
+ // Convenience for GetPrimaryRootWindow()->GetRootWindowController().
+ WmRootWindowController* GetPrimaryRootWindowController();
+
virtual WmWindow* GetPrimaryRootWindow() = 0;
// Returns the root window for the specified display.
@@ -215,6 +219,14 @@ class ASH_EXPORT WmShell {
// Returns true if a system-modal dialog window is currently open.
bool IsSystemModalWindowOpen();
+ // Creates a modal background (a partially-opaque fullscreen window) on all
+ // displays for |window|.
+ void CreateModalBackground(WmWindow* window);
+
+ // Called when a modal window is removed. It will activate another modal
+ // window if any, or remove modal screens on all displays.
+ void OnModalWindowRemoved(WmWindow* removed);
+
// For testing only: set simulation that a modal window is open
void SimulateModalWindowOpenForTesting(bool modal_window_open) {
simulate_modal_window_open_for_testing_ = modal_window_open;
« 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