OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 mus.mojom; | 5 module mus.mojom; |
6 | 6 |
7 import "components/mus/public/interfaces/window_tree.mojom"; | 7 import "components/mus/public/interfaces/window_tree.mojom"; |
8 import "ui/gfx/geometry/mojo/geometry.mojom"; | 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
9 | 9 |
10 // WindowTreeHost encapsulates a unique underlying platform window, with a tree | 10 // WindowTreeHost encapsulates a unique underlying platform window, with a tree |
11 // of windows. | 11 // of windows. |
12 interface WindowTreeHost { | 12 interface WindowTreeHost { |
13 // Sets the size of the platform window. | 13 // Sets the size of the platform window. |
14 SetSize(mojo.Size size); | 14 SetSize(gfx.mojom.Size size); |
15 | 15 |
16 // Sets a title string to be displayed on the platform window. | 16 // Sets a title string to be displayed on the platform window. |
17 SetTitle(string title); | 17 SetTitle(string title); |
18 }; | 18 }; |
19 | 19 |
20 interface WindowTreeHostFactory { | 20 interface WindowTreeHostFactory { |
21 // Creates a new WindowTreeHost. |tree_client| is queried for the | 21 // Creates a new WindowTreeHost. |tree_client| is queried for the |
22 // WindowManager. | 22 // WindowManager. |
23 CreateWindowTreeHost(WindowTreeHost& window_tree_host, | 23 CreateWindowTreeHost(WindowTreeHost& window_tree_host, |
24 WindowTreeClient tree_client); | 24 WindowTreeClient tree_client); |
25 }; | 25 }; |
OLD | NEW |