| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module mus.mojom; | |
| 6 | |
| 7 import "components/mus/public/interfaces/window_manager_constants.mojom"; | |
| 8 import "components/mus/public/interfaces/window_tree.mojom"; | |
| 9 | |
| 10 // Used to register the WindowManagerFactory that is used as displays are | |
| 11 // added. | |
| 12 // NOTE: The WindowManagerFactoryService can only be obtained once, further | |
| 13 // SetWindowManagerFactory() can only be called once as well. | |
| 14 interface WindowManagerFactoryService { | |
| 15 SetWindowManagerFactory(WindowManagerFactory factory); | |
| 16 }; | |
| 17 | |
| 18 // When a new display is detected WindowManagerFactory is used to bind the | |
| 19 // root window of the display to a WindowTreeClient, and then obtain a | |
| 20 // WindowManager from the WindowTreeClient. | |
| 21 interface WindowManagerFactory { | |
| 22 CreateWindowManager(Display display, WindowTreeClient& client); | |
| 23 }; | |
| OLD | NEW |