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

Unified Diff: components/mus/ws/window_tree.h

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include 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 | « components/mus/ws/window_server.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree.h
diff --git a/components/mus/ws/window_tree.h b/components/mus/ws/window_tree.h
index 2085ca77f897e4a2dae2810bb06e042f873b83f2..4a03beb451b0361da7f134681155e371a5514af6 100644
--- a/components/mus/ws/window_tree.h
+++ b/components/mus/ws/window_tree.h
@@ -129,6 +129,9 @@ class WindowTree : public mojom::WindowTree,
const_cast<const WindowTree*>(this)->GetWindowManagerState(window));
}
+ // Adds a new root to this tree. This is only valid for window managers.
+ void AddRootForWindowManager(const ServerWindow* root);
+
// Invoked when a tree is about to be destroyed.
void OnWindowDestroyingTreeImpl(WindowTree* tree);
@@ -246,7 +249,6 @@ class WindowTree : public mojom::WindowTree,
const DisplayManager* display_manager() const;
// Used when this tree is the window manager.
- Display* GetDisplayForWindowManager();
WindowManagerState* GetWindowManagerStateForWindowManager();
bool ShouldRouteToWindowManager(const ServerWindow* window) const;
« no previous file with comments | « components/mus/ws/window_server.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698