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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 // TODO(sky): parts of this should move to PointerData. | 107 // TODO(sky): parts of this should move to PointerData. |
108 EventFlags flags; | 108 int32 flags; |
yzshen1
2016/01/07 19:24:52
Please add comments.
Sam McNally
2016/01/08 05:12:51
Done.
| |
109 // Time in microseconds from when the platform was started. | 109 // Time in microseconds from when the platform was started. |
110 // This value accurately orders events w.r.t. to each other but | 110 // This value accurately orders events w.r.t. to each other but |
111 // does not position them at an absolute time. | 111 // does not position them at an absolute time. |
112 int64 time_stamp; | 112 int64 time_stamp; |
113 KeyData? key_data; | 113 KeyData? key_data; |
114 PointerData? pointer_data; | 114 PointerData? pointer_data; |
115 }; | 115 }; |
OLD | NEW |