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

Unified Diff: mash/wm/window_manager_application.h

Issue 1994763002: Wires up WorkspaceLayoutManager in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: data deps Created 4 years, 7 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 | « mash/wm/window_manager.cc ('k') | mash/wm/window_manager_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/window_manager_application.h
diff --git a/mash/wm/window_manager_application.h b/mash/wm/window_manager_application.h
index 867e8be974b70838cccfd2766540a308653cc327..b68a3f1a49f45575106155af3f4d011450a82cf8 100644
--- a/mash/wm/window_manager_application.h
+++ b/mash/wm/window_manager_application.h
@@ -25,9 +25,12 @@
#include "services/shell/public/cpp/shell_client.h"
#include "services/tracing/public/cpp/tracing_impl.h"
+namespace display {
+class Screen;
+}
+
namespace views {
class AuraInit;
-class ScreenMus;
}
namespace ui {
@@ -42,6 +45,9 @@ class RootWindowController;
class RootWindowsObserver;
class ShelfLayoutImpl;
class UserWindowControllerImpl;
+class WmGlobalsMus;
+class WmLookupMus;
+class WmScreen;
class WindowManagerApplication
: public shell::ShellClient,
@@ -61,6 +67,8 @@ class WindowManagerApplication
// RootWindowController that has a valid root window.
std::set<RootWindowController*> GetRootControllers();
+ WmGlobalsMus* globals() { return globals_.get(); }
+
// Called when the root window of |root_controller| is obtained.
void OnRootWindowControllerGotRoot(RootWindowController* root_controller);
@@ -82,8 +90,14 @@ class WindowManagerApplication
}
private:
+ friend class WmTestBase;
+ friend class WmTestHelper;
+
void OnAcceleratorRegistrarDestroyed(AcceleratorRegistrarImpl* registrar);
+ // Adds |root_window_controller| to the set of known roots.
+ void AddRootWindowController(RootWindowController* root_window_controller);
+
// shell::ShellClient:
void Initialize(shell::Connector* connector,
const shell::Identity& identity,
@@ -113,9 +127,12 @@ class WindowManagerApplication
mojo::TracingImpl tracing_;
- std::unique_ptr<views::ScreenMus> screen_;
+ std::unique_ptr<display::Screen> screen_;
std::unique_ptr<views::AuraInit> aura_init_;
+ std::unique_ptr<WmGlobalsMus> globals_;
+ std::unique_ptr<WmLookupMus> lookup_;
+
// The |shelf_layout_| object is created once OnEmbed() is called. Until that
// time |shelf_layout_requests_| stores pending interface requests.
std::unique_ptr<ShelfLayoutImpl> shelf_layout_;
« no previous file with comments | « mash/wm/window_manager.cc ('k') | mash/wm/window_manager_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698