OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/input_event_constants.mojom"; | 7 import "components/mus/public/interfaces/input_event_constants.mojom"; |
8 import "components/mus/public/interfaces/input_key_codes.mojom"; | 8 import "components/mus/public/interfaces/input_key_codes.mojom"; |
9 | 9 |
10 struct KeyData { | 10 struct KeyData { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // pressure is not available, it will be set to 0.5 if the button is down. | 97 // pressure is not available, it will be set to 0.5 if the button is down. |
98 float pressure; | 98 float pressure; |
99 // |tilt_y| and |tilt_z| are in degrees. | 99 // |tilt_y| and |tilt_z| are in degrees. |
100 float tilt_y; | 100 float tilt_y; |
101 float tilt_z; | 101 float tilt_z; |
102 }; | 102 }; |
103 | 103 |
104 struct Event { | 104 struct Event { |
105 // TODO(sky): rename to type. | 105 // TODO(sky): rename to type. |
106 EventType action; | 106 EventType action; |
| 107 // A bitfield of kEventFlag* and kMouseEventFlag* values in |
| 108 // input_event_constants.mojom. |
| 109 // |
107 // TODO(sky): parts of this should move to PointerData. | 110 // TODO(sky): parts of this should move to PointerData. |
108 EventFlags flags; | 111 int32 flags; |
109 // Time in microseconds from when the platform was started. | 112 // Time in microseconds from when the platform was started. |
110 // This value accurately orders events w.r.t. to each other but | 113 // This value accurately orders events w.r.t. to each other but |
111 // does not position them at an absolute time. | 114 // does not position them at an absolute time. |
112 int64 time_stamp; | 115 int64 time_stamp; |
113 KeyData? key_data; | 116 KeyData? key_data; |
114 PointerData? pointer_data; | 117 PointerData? pointer_data; |
115 }; | 118 }; |
OLD | NEW |