OLD | NEW |
---|---|
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 | 5 |
6 /** | 6 /** |
7 * This file defines the Input Event interfaces. | 7 * This file defines the Input Event interfaces. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
11 M13 = 1.0, | 11 M13 = 1.0, |
12 M14 = 1.1, | 12 M14 = 1.1, |
13 M34 = 1.2 | 13 M34 = 1.2, |
14 M54 = 1.3 | |
bbudge
2016/09/01 18:24:01
Sorry, since M54 has already branched, this should
| |
14 }; | 15 }; |
15 | 16 |
16 /** | 17 /** |
17 * This enumeration contains the types of input events. | 18 * This enumeration contains the types of input events. |
18 */ | 19 */ |
19 [assert_size(4)] | 20 [assert_size(4)] |
20 enum PP_InputEvent_Type { | 21 enum PP_InputEvent_Type { |
21 PP_INPUTEVENT_TYPE_UNDEFINED = -1, | 22 PP_INPUTEVENT_TYPE_UNDEFINED = -1, |
22 | 23 |
23 /** | 24 /** |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, | 193 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, |
193 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3, | 194 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3, |
194 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, | 195 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, |
195 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, | 196 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, |
196 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, | 197 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, |
197 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7, | 198 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7, |
198 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, | 199 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, |
199 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, | 200 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, |
200 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10, | 201 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10, |
201 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11, | 202 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11, |
202 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12 | 203 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12, |
204 [version=1.3] | |
205 PP_INPUTEVENT_MODIFIER_ISPEN = 1 << 13, | |
206 [version=1.3] | |
207 PP_INPUTEVENT_MODIFIER_ISERASER = 1 << 14 | |
203 }; | 208 }; |
204 | 209 |
205 /** | 210 /** |
206 * This enumeration contains constants representing each mouse button. To get | 211 * This enumeration contains constants representing each mouse button. To get |
207 * the mouse button for a mouse down or up event, use GetMouseButton on | 212 * the mouse button for a mouse down or up event, use GetMouseButton on |
208 * PPB_InputEvent. | 213 * PPB_InputEvent. |
209 */ | 214 */ |
210 [assert_size(4)] | 215 [assert_size(4)] |
211 enum PP_InputEvent_MouseButton { | 216 enum PP_InputEvent_MouseButton { |
212 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, | 217 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, |
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1078 * event. | 1083 * event. |
1079 * | 1084 * |
1080 * @param[out] start The start position of the current selection. | 1085 * @param[out] start The start position of the current selection. |
1081 * | 1086 * |
1082 * @param[out] end The end position of the current selection. | 1087 * @param[out] end The end position of the current selection. |
1083 */ | 1088 */ |
1084 void GetSelection([in] PP_Resource ime_event, | 1089 void GetSelection([in] PP_Resource ime_event, |
1085 [out] uint32_t start, | 1090 [out] uint32_t start, |
1086 [out] uint32_t end); | 1091 [out] uint32_t end); |
1087 }; | 1092 }; |
OLD | NEW |