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 "cc/ipc/local_surface_id.mojom"; |
7 import "ui/gfx/geometry/mojo/geometry.mojom"; | 8 import "ui/gfx/geometry/mojo/geometry.mojom"; |
8 | 9 |
9 // Contains state of a single window. | 10 // Contains state of a single window. |
10 struct WindowData { | 11 struct WindowData { |
11 // Unique identifier of the parent. If the client can not see the parent an | 12 // Unique identifier of the parent. If the client can not see the parent an |
12 // id of 0 is supplied. | 13 // id of 0 is supplied. |
13 uint32 parent_id; | 14 uint32 parent_id; |
14 | 15 |
15 // Unique identifier of the window. | 16 // Unique identifier of the window. |
16 uint32 window_id; | 17 uint32 window_id; |
17 | 18 |
18 // Id of the transient parent, 0 if there isn't one. | 19 // Id of the transient parent, 0 if there isn't one. |
19 uint32 transient_parent_id; | 20 uint32 transient_parent_id; |
20 | 21 |
21 gfx.mojom.Rect bounds; | 22 gfx.mojom.Rect bounds; |
22 | 23 |
| 24 // The LocalSurfaceId that the window should use to render the first frame. |
| 25 cc.mojom.LocalSurfaceId? local_surface_id; |
| 26 |
23 // Arbitrary key/value pairs. The interpretation of these is left to the | 27 // Arbitrary key/value pairs. The interpretation of these is left to the |
24 // client. See SetWindowProperty() for more information. | 28 // client. See SetWindowProperty() for more information. |
25 map<string, array<uint8>> properties; | 29 map<string, array<uint8>> properties; |
26 | 30 |
27 // True if this window is visible. The window may not be drawn on screen (see | 31 // True if this window is visible. The window may not be drawn on screen (see |
28 // OnWindowParentDrawnStateChanged() for details). | 32 // OnWindowParentDrawnStateChanged() for details). |
29 bool visible; | 33 bool visible; |
30 }; | 34 }; |
31 | 35 |
32 // The result of an input event sent to a client app. | 36 // The result of an input event sent to a client app. |
(...skipping 24 matching lines...) Expand all Loading... |
57 const uint32 kDropEffectLink = 4; | 61 const uint32 kDropEffectLink = 4; |
58 | 62 |
59 // When this flag is set in a call to Embed(), the embedder (i.e. the client | 63 // When this flag is set in a call to Embed(), the embedder (i.e. the client |
60 // that is making the call to Embed()) will receive events that are targeted to | 64 // that is making the call to Embed()) will receive events that are targeted to |
61 // the embedded client. The embedded client will not receive any input events | 65 // the embedded client. The embedded client will not receive any input events |
62 // from the window server. However, the embedder can choose to dispatch events | 66 // from the window server. However, the embedder can choose to dispatch events |
63 // to the embedded client through other mechanism. | 67 // to the embedded client through other mechanism. |
64 // TODO(sad): Provide an API in mus for the embedder to dispatch events to the | 68 // TODO(sad): Provide an API in mus for the embedder to dispatch events to the |
65 // embedded client. https://crbug.com/621085 | 69 // embedded client. https://crbug.com/621085 |
66 const uint32 kEmbedFlagEmbedderInterceptsEvents = 0x01; | 70 const uint32 kEmbedFlagEmbedderInterceptsEvents = 0x01; |
OLD | NEW |