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

Unified Diff: services/ui/public/interfaces/window_manager_window_tree_factory.mojom

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/public/interfaces/window_manager.mojom ('k') | services/ui/ws/display.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/interfaces/window_manager_window_tree_factory.mojom
diff --git a/services/ui/public/interfaces/window_manager_window_tree_factory.mojom b/services/ui/public/interfaces/window_manager_window_tree_factory.mojom
index 152b3263a784028e39a75ddc6a173db228666939..04ad1f3c4f9e68f3abecab7b19feb9c19f39b071 100644
--- a/services/ui/public/interfaces/window_manager_window_tree_factory.mojom
+++ b/services/ui/public/interfaces/window_manager_window_tree_factory.mojom
@@ -7,10 +7,17 @@ module ui.mojom;
import "services/ui/public/interfaces/window_manager_constants.mojom";
import "services/ui/public/interfaces/window_tree.mojom";
-// Interface used by the WindowManager to obtain a WindowTree. The
-// WindowManager is informed of the roots (one per display) by way of
-// WmNewDisplayAdded(). See it for details.
+// Interface used by the WindowManager to obtain a WindowTree. Server may be
+// configured in two distinct modes by way of the
+// |automatically_create_display_roots| parameter:
+// . If true, then mus creates windows for displays as displays are added and
+// calls WmNewDisplayAdded() (see it for more details).
+// . If false, the client is responsible for creating and setting windows for
+// displays (via SetDisplayRoot()). In this mode it is assumed the client is
+// detecting displays via another mechanism.
interface WindowManagerWindowTreeFactory {
// NOTE: it is expected this is called only once.
- CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
+ CreateWindowTree(WindowTree& tree_request,
+ WindowTreeClient client,
+ bool automatically_create_display_roots);
};
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | services/ui/ws/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698