| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module ui.mojom; | 5 module ui.mojom; |
| 6 | 6 |
| 7 import "services/ui/public/interfaces/window_manager_constants.mojom"; | 7 import "services/ui/public/interfaces/window_manager_constants.mojom"; |
| 8 import "services/ui/public/interfaces/window_tree.mojom"; | 8 import "services/ui/public/interfaces/window_tree.mojom"; |
| 9 | 9 |
| 10 // Interface used by the WindowManager to obtain a WindowTree. The | 10 // Interface used by the WindowManager to obtain a WindowTree. Server may be |
| 11 // WindowManager is informed of the roots (one per display) by way of | 11 // configured in two distinct modes by way of the |
| 12 // WmNewDisplayAdded(). See it for details. | 12 // |automatically_create_display_roots| parameter: |
| 13 // . If true, then mus creates windows for displays as displays are added and |
| 14 // calls WmNewDisplayAdded() (see it for more details). |
| 15 // . If false, the client is responsible for creating and setting windows for |
| 16 // displays (via SetDisplayRoot()). In this mode it is assumed the client is |
| 17 // detecting displays via another mechanism. |
| 13 interface WindowManagerWindowTreeFactory { | 18 interface WindowManagerWindowTreeFactory { |
| 14 // NOTE: it is expected this is called only once. | 19 // NOTE: it is expected this is called only once. |
| 15 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); | 20 CreateWindowTree(WindowTree& tree_request, |
| 21 WindowTreeClient client, |
| 22 bool automatically_create_display_roots); |
| 16 }; | 23 }; |
| OLD | NEW |