| 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 Fri Jun 22 15:22:14 2012. */ | 6 /* From ppb_input_event.idl modified Tue Aug 14 09:41:28 2012. */ |
| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, | 201 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, |
| 202 PP_INPUTEVENT_MODIFIER_CONTROLKEY = 1 << 1, | 202 PP_INPUTEVENT_MODIFIER_CONTROLKEY = 1 << 1, |
| 203 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, | 203 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, |
| 204 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3, | 204 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3, |
| 205 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, | 205 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, |
| 206 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, | 206 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, |
| 207 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, | 207 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, |
| 208 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7, | 208 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7, |
| 209 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, | 209 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, |
| 210 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, | 210 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, |
| 211 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10 | 211 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10, |
| 212 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11, |
| 213 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12 |
| 212 } PP_InputEvent_Modifier; | 214 } PP_InputEvent_Modifier; |
| 213 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Modifier, 4); | 215 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Modifier, 4); |
| 214 | 216 |
| 215 /** | 217 /** |
| 216 * This enumeration contains constants representing each mouse button. To get | 218 * This enumeration contains constants representing each mouse button. To get |
| 217 * the mouse button for a mouse down or up event, use GetMouseButton on | 219 * the mouse button for a mouse down or up event, use GetMouseButton on |
| 218 * PPB_InputEvent. | 220 * PPB_InputEvent. |
| 219 */ | 221 */ |
| 220 typedef enum { | 222 typedef enum { |
| 221 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, | 223 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 uint32_t touch_id); | 880 uint32_t touch_id); |
| 879 }; | 881 }; |
| 880 | 882 |
| 881 typedef struct PPB_TouchInputEvent_1_0 PPB_TouchInputEvent; | 883 typedef struct PPB_TouchInputEvent_1_0 PPB_TouchInputEvent; |
| 882 /** | 884 /** |
| 883 * @} | 885 * @} |
| 884 */ | 886 */ |
| 885 | 887 |
| 886 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ | 888 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ |
| 887 | 889 |
| OLD | NEW |