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