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 /* From ppb_input_event.idl modified Thu Apr 3 14:52:10 2014. */ | 6 /* From ppb_input_event.idl modified Thu Apr 3 14:52:10 2014. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_INPUT_EVENT_H_ | 8 #ifndef PPAPI_C_PPB_INPUT_EVENT_H_ |
9 #define PPAPI_C_PPB_INPUT_EVENT_H_ | 9 #define PPAPI_C_PPB_INPUT_EVENT_H_ |
10 | 10 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, | 207 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, |
208 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3, | 208 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3, |
209 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, | 209 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, |
210 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, | 210 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, |
211 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, | 211 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, |
212 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7, | 212 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7, |
213 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, | 213 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, |
214 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, | 214 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, |
215 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10, | 215 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10, |
216 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11, | 216 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11, |
217 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12 | 217 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12, |
| 218 // PPAPI does not use modifiers 13 through 18. |
| 219 PP_INPUTEVENT_MODIFIER_ISERASER = 1 << 19, |
218 } PP_InputEvent_Modifier; | 220 } PP_InputEvent_Modifier; |
219 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Modifier, 4); | 221 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Modifier, 4); |
220 | 222 |
221 /** | 223 /** |
222 * This enumeration contains constants representing each mouse button. To get | 224 * This enumeration contains constants representing each mouse button. To get |
223 * the mouse button for a mouse down or up event, use GetMouseButton on | 225 * the mouse button for a mouse down or up event, use GetMouseButton on |
224 * PPB_InputEvent. | 226 * PPB_InputEvent. |
225 */ | 227 */ |
226 typedef enum { | 228 typedef enum { |
227 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, | 229 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, |
228 PP_INPUTEVENT_MOUSEBUTTON_LEFT = 0, | 230 PP_INPUTEVENT_MOUSEBUTTON_LEFT = 0, |
229 PP_INPUTEVENT_MOUSEBUTTON_MIDDLE = 1, | 231 PP_INPUTEVENT_MOUSEBUTTON_MIDDLE = 1, |
230 PP_INPUTEVENT_MOUSEBUTTON_RIGHT = 2 | 232 PP_INPUTEVENT_MOUSEBUTTON_RIGHT = 2, |
| 233 PP_INPUTEVENT_MOUSEBUTTON_ERASER = 3 |
231 } PP_InputEvent_MouseButton; | 234 } PP_InputEvent_MouseButton; |
232 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_MouseButton, 4); | 235 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_MouseButton, 4); |
233 | 236 |
234 typedef enum { | 237 typedef enum { |
235 /** | 238 /** |
236 * Request mouse input events. | 239 * Request mouse input events. |
237 * | 240 * |
238 * Normally you will request mouse events by calling RequestInputEvents(). | 241 * Normally you will request mouse events by calling RequestInputEvents(). |
239 * The only use case for filtered events (via RequestFilteringInputEvents()) | 242 * The only use case for filtered events (via RequestFilteringInputEvents()) |
240 * is for instances that have irregular outlines and you want to perform hit | 243 * is for instances that have irregular outlines and you want to perform hit |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end); | 1040 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end); |
1038 }; | 1041 }; |
1039 | 1042 |
1040 typedef struct PPB_IMEInputEvent_1_0 PPB_IMEInputEvent; | 1043 typedef struct PPB_IMEInputEvent_1_0 PPB_IMEInputEvent; |
1041 /** | 1044 /** |
1042 * @} | 1045 * @} |
1043 */ | 1046 */ |
1044 | 1047 |
1045 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ | 1048 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ |
1046 | 1049 |
OLD | NEW |