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

Unified Diff: services/ui/ws/window_server.cc

Issue 2804403002: Adds ability for WindowManager to create display roots (Closed)
Patch Set: cleanup Created 3 years, 8 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 | « services/ui/ws/window_server.h ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 0e1e3a40d8133dc476fff69f41599ba88e6fffa4..b47276b800998b74ed4f097ab87f0dce5656c39d 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -133,7 +133,8 @@ void WindowServer::AddTree(std::unique_ptr<WindowTree> tree_impl_ptr,
WindowTree* WindowServer::CreateTreeForWindowManager(
const UserId& user_id,
mojom::WindowTreeRequest window_tree_request,
- mojom::WindowTreeClientPtr window_tree_client) {
+ mojom::WindowTreeClientPtr window_tree_client,
+ bool automatically_create_display_roots) {
std::unique_ptr<WindowTree> window_tree(new WindowTree(
this, user_id, nullptr, base::WrapUnique(new WindowManagerAccessPolicy)));
std::unique_ptr<WindowTreeBinding> window_tree_binding =
@@ -147,7 +148,7 @@ WindowTree* WindowServer::CreateTreeForWindowManager(
}
WindowTree* window_tree_ptr = window_tree.get();
AddTree(std::move(window_tree), std::move(window_tree_binding), nullptr);
- window_tree_ptr->ConfigureWindowManager();
+ window_tree_ptr->ConfigureWindowManager(automatically_create_display_roots);
return window_tree_ptr;
}
« no previous file with comments | « services/ui/ws/window_server.h ('k') | services/ui/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698