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

Unified Diff: ash/common/wm_root_window_controller.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/system_modal_container_layout_manager.cc ('k') | ash/common/wm_root_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_root_window_controller.h
diff --git a/ash/common/wm_root_window_controller.h b/ash/common/wm_root_window_controller.h
index cc979fac48bb7c1484bb0956d25ea1bd8c25250e..43b2d6e6a81db74f7d7bf4b72df718c09653a1b9 100644
--- a/ash/common/wm_root_window_controller.h
+++ b/ash/common/wm_root_window_controller.h
@@ -18,6 +18,7 @@ namespace ash {
class AlwaysOnTopController;
class AnimatingWallpaperWidgetController;
+class SystemModalContainerLayoutManager;
class WallpaperWidgetController;
class WmShelf;
class WmShell;
@@ -55,6 +56,16 @@ class ASH_EXPORT WmRootWindowController {
wm::WorkspaceWindowState GetWorkspaceWindowState();
+ // Returns the layout manager for the appropriate modal-container. If the
+ // window is inside the lockscreen modal container, then the layout manager
+ // for that is returned. Otherwise the layout manager for the default modal
+ // container is returned.
+ // If no window is specified (i.e. |window| is null), then the lockscreen
+ // modal container is used if the screen is currently locked. Otherwise, the
+ // default modal container is used.
+ SystemModalContainerLayoutManager* GetSystemModalLayoutManager(
+ WmWindow* window);
+
virtual bool HasShelf() = 0;
virtual WmShell* GetShell() = 0;
@@ -66,6 +77,10 @@ class ASH_EXPORT WmRootWindowController {
// Returns the window associated with this WmRootWindowController.
virtual WmWindow* GetWindow() = 0;
+ // Gets the WmWindow whose shell window id is |container_id|.
+ WmWindow* GetContainer(int container_id);
+ const WmWindow* GetContainer(int container_id) const;
+
// Configures |init_params| prior to initializing |widget|.
// |shell_container_id| is the id of the container to parent |widget| to.
virtual void ConfigureWidgetInitParamsForContainer(
« no previous file with comments | « ash/common/wm/system_modal_container_layout_manager.cc ('k') | ash/common/wm_root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698