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

Unified Diff: ash/shell.h

Issue 2620913003: Removes WmRootWindowController subclasses (Closed)
Patch Set: spelling 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/root_window_controller.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 86d2677f286c910c9d2db731e2ee68e7e8664e59..723d969c4236d4bb0adcdf34978b2199eaef67a1 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -26,6 +26,7 @@
namespace aura {
class RootWindow;
class Window;
+class WindowTreeClient;
namespace client {
class ActivationClient;
class FocusClient;
@@ -184,6 +185,15 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
static const aura::Window* GetContainer(const aura::Window* root_window,
int container_id);
+ // TODO(sky): better isolate this.
+ static void set_window_tree_client(aura::WindowTreeClient* client) {
+ window_tree_client_ = client;
+ }
+
+ static aura::WindowTreeClient* window_tree_client() {
+ return window_tree_client_;
+ }
+
// Creates a default views::NonClientFrameView for use by windows in the
// Ash environment.
views::NonClientFrameView* CreateDefaultNonClientFrameView(
@@ -414,6 +424,9 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
static Shell* instance_;
+ // Only valid in mash, for classic ash this is null.
+ static aura::WindowTreeClient* window_tree_client_;
+
// If set before the Shell is initialized, the mouse cursor will be hidden
// when the screen is initially created.
static bool initially_hide_cursor_;
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698