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

Unified Diff: mash/wm/root_window_controller.h

Issue 1994763002: Wires up WorkspaceLayoutManager in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks 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
Index: mash/wm/root_window_controller.h
diff --git a/mash/wm/root_window_controller.h b/mash/wm/root_window_controller.h
index c1c27fc234e158bbbaced38d234610b2c06b417f..767317332eca9d5ca0e60027f74ee86b8abfb8e2 100644
--- a/mash/wm/root_window_controller.h
+++ b/mash/wm/root_window_controller.h
@@ -15,6 +15,10 @@
#include "mojo/public/cpp/bindings/binding.h"
#include "ui/display/display.h"
+namespace ash {
+class AlwaysOnTopController;
+}
+
namespace mus {
class WindowManagerClient;
}
@@ -36,6 +40,10 @@ class ShelfLayoutManager;
class StatusLayoutManager;
class WindowManager;
class WindowManagerApplication;
+class WmRootWindowControllerMus;
+class WmShelfMus;
+class WmTestBase;
+class WmTestHelper;
// RootWindowController manages the windows and state for a single display.
//
@@ -73,7 +81,16 @@ class RootWindowController : public mus::WindowObserver,
ShelfLayoutManager* GetShelfLayoutManager();
StatusLayoutManager* GetStatusLayoutManager();
+ ash::AlwaysOnTopController* always_on_top_controller() {
+ return always_on_top_controller_.get();
+ }
+
+ WmShelfMus* wm_shelf() { return wm_shelf_.get(); }
+
private:
+ friend class WmTestBase;
+ friend class WmTestHelper;
+
explicit RootWindowController(WindowManagerApplication* app);
~RootWindowController() override;
@@ -96,6 +113,9 @@ class RootWindowController : public mus::WindowObserver,
mus::Window* root_;
int window_count_;
+ std::unique_ptr<WmRootWindowControllerMus> wm_root_window_controller_;
+ std::unique_ptr<WmShelfMus> wm_shelf_;
+
std::unique_ptr<WindowManager> window_manager_;
std::map<mus::Window*, std::unique_ptr<LayoutManager>> layout_managers_;
@@ -104,6 +124,8 @@ class RootWindowController : public mus::WindowObserver,
display::Display display_;
+ std::unique_ptr<ash::AlwaysOnTopController> always_on_top_controller_;
+
DISALLOW_COPY_AND_ASSIGN(RootWindowController);
};

Powered by Google App Engine
This is Rietveld 408576698