Chromium Code Reviews| Index: ash/shell.h |
| diff --git a/ash/shell.h b/ash/shell.h |
| index 920a205edd0725d505524d137c0f11f8f7cb0605..7af12315b1b4e92a8c6e59600891c131f248d64f 100644 |
| --- a/ash/shell.h |
| +++ b/ash/shell.h |
| @@ -26,6 +26,7 @@ |
| namespace aura { |
| class RootWindow; |
| class Window; |
| +class WindowManagerClient; |
| class WindowTreeClient; |
| namespace client { |
| class ActivationClient; |
| @@ -185,7 +186,8 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate, |
| static const aura::Window* GetContainer(const aura::Window* root_window, |
| int container_id); |
| - // TODO(sky): better isolate this. |
| + // TODO(sky): move this and WindowManagerClient into ShellMash that is owned |
|
msw
2017/01/12 00:14:42
q: What is ShellMash? WmShell?
sky
2017/01/12 14:43:44
WmShell will go away soon. When that happens we'll
|
| + // by Shell. Doing the move is gated on having mash create Shell. |
| static void set_window_tree_client(aura::WindowTreeClient* client) { |
| window_tree_client_ = client; |
| } |
| @@ -194,6 +196,13 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate, |
| return window_tree_client_; |
| } |
| + static void set_window_manager_client(aura::WindowManagerClient* client) { |
| + window_manager_client_ = client; |
| + } |
| + static aura::WindowManagerClient* window_manager_client() { |
| + return window_manager_client_; |
| + } |
| + |
| // Creates a default views::NonClientFrameView for use by windows in the |
| // Ash environment. |
| views::NonClientFrameView* CreateDefaultNonClientFrameView( |
| @@ -426,6 +435,7 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate, |
| // Only valid in mash, for classic ash this is null. |
| static aura::WindowTreeClient* window_tree_client_; |
| + static aura::WindowManagerClient* window_manager_client_; |
| // If set before the Shell is initialized, the mouse cursor will be hidden |
| // when the screen is initially created. |