| 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 Tue Aug 30 13:53:13 2016. */ |
| 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 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_point.h" | 14 #include "ppapi/c/pp_point.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| (...skipping 190 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 PP_INPUTEVENT_MODIFIER_ISPEN = 1 << 13, |
| 219 PP_INPUTEVENT_MODIFIER_ISERASER = 1 << 14 |
| 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, |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end); | 1039 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end); |
| 1038 }; | 1040 }; |
| 1039 | 1041 |
| 1040 typedef struct PPB_IMEInputEvent_1_0 PPB_IMEInputEvent; | 1042 typedef struct PPB_IMEInputEvent_1_0 PPB_IMEInputEvent; |
| 1041 /** | 1043 /** |
| 1042 * @} | 1044 * @} |
| 1043 */ | 1045 */ |
| 1044 | 1046 |
| 1045 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ | 1047 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ |
| 1046 | 1048 |
| OLD | NEW |