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

Unified Diff: ash/shell.h

Issue 2625873007: Promotes WmWindowMus functions to WmWindowAura and nukes WmWindowMus (Closed)
Patch Set: merge Created 3 years, 11 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/mus/window_manager.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index f7890a47456ef21c6c21fd25af0fedf40ae6fe1a..401726f5a55ae4bae8f23c44b93d1c24f7b16a7b 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
+ // 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(
@@ -423,6 +432,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.
« no previous file with comments | « ash/mus/window_manager.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698