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 { |
(...skipping 29 matching lines...) Expand all Loading... |
40 // in the Window than the owner may also render to this surface as well. | 40 // in the Window than the owner may also render to this surface as well. |
41 DEFAULT, | 41 DEFAULT, |
42 }; | 42 }; |
43 | 43 |
44 // The result of an input event sent to a client app. | 44 // The result of an input event sent to a client app. |
45 enum EventResult { | 45 enum EventResult { |
46 HANDLED, | 46 HANDLED, |
47 UNHANDLED, | 47 UNHANDLED, |
48 }; | 48 }; |
49 | 49 |
| 50 // A bitfield of what drag operations are possible. |
| 51 const uint32 kDropEffectNone = 0; |
| 52 const uint32 kDropEffectMove = 1; |
| 53 const uint32 kDropEffectCopy = 2; |
| 54 const uint32 kDropEffectLink = 4; |
| 55 |
50 // When this flag is set in a call to Embed(), the embedder (i.e. the client | 56 // When this flag is set in a call to Embed(), the embedder (i.e. the client |
51 // that is making the call to Embed()) will receive events that are targeted to | 57 // that is making the call to Embed()) will receive events that are targeted to |
52 // the embedded client. The embedded client will not receive any input events | 58 // the embedded client. The embedded client will not receive any input events |
53 // from the window server. However, the embedder can choose to dispatch events | 59 // from the window server. However, the embedder can choose to dispatch events |
54 // to the embedded client through other mechanism. | 60 // to the embedded client through other mechanism. |
55 // TODO(sad): Provide an API in mus for the embedder to dispatch events to the | 61 // TODO(sad): Provide an API in mus for the embedder to dispatch events to the |
56 // embedded client. https://crbug.com/621085 | 62 // embedded client. https://crbug.com/621085 |
57 const uint32 kEmbedFlagEmbedderInterceptsEvents = 0x01; | 63 const uint32 kEmbedFlagEmbedderInterceptsEvents = 0x01; |
OLD | NEW |