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

Unified Diff: ash/mus/root_window_controller.h

Issue 2033843003: Makes ash/mus use RootWindowControllerCommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_mash_wm
Patch Set: merge fail Created 4 years, 6 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/property_util.cc ('k') | ash/mus/root_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/root_window_controller.h
diff --git a/ash/mus/root_window_controller.h b/ash/mus/root_window_controller.h
index 97c87301b120dae296bb47c48145099079783ee4..d2a96f2a9dd3b20c526d9c6e0a38ec905b2ebaaf 100644
--- a/ash/mus/root_window_controller.h
+++ b/ash/mus/root_window_controller.h
@@ -32,6 +32,7 @@ class Event;
namespace ash {
class AlwaysOnTopController;
+class RootWindowControllerCommon;
namespace mus {
@@ -45,6 +46,7 @@ class WmRootWindowControllerMus;
class WmShelfMus;
class WmTestBase;
class WmTestHelper;
+class WmWindowMus;
// RootWindowController manages the windows and state for a single display.
//
@@ -70,7 +72,9 @@ class RootWindowController : public ::mus::WindowObserver,
void IncrementWindowCount() { ++window_count_; }
::mus::Window* GetWindowForContainer(mojom::Container container);
- bool WindowIsContainer(const ::mus::Window* window) const;
+ bool WindowIsContainer(::mus::Window* window);
+
+ WmWindowMus* GetWindowByShellWindowId(int id);
WindowManager* window_manager() { return window_manager_.get(); }
@@ -109,15 +113,15 @@ class RootWindowController : public ::mus::WindowObserver,
// ShelfLayoutManagerDelegate:
void OnShelfWindowAvailable() override;
- // Sets up the window containers used for z-space management.
- void CreateContainer(mojom::Container container,
- mojom::Container parent_container);
- void CreateContainers();
+ // Creates the necessary set of layout managers in the shell windows.
+ void CreateLayoutManagers();
WindowManagerApplication* app_;
::mus::Window* root_;
int window_count_;
+ std::unique_ptr<RootWindowControllerCommon> root_window_controller_common_;
+
std::unique_ptr<WmRootWindowControllerMus> wm_root_window_controller_;
std::unique_ptr<WmShelfMus> wm_shelf_;
« no previous file with comments | « ash/mus/property_util.cc ('k') | ash/mus/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698