| 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 Mon Nov 14 10:36:01 2011. */ | 6 /* From ppb_input_event.idl modified Mon Feb 6 17:00:27 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 * Request touch events only if you intend to handle them. If the browser | 226 * Request touch events only if you intend to handle them. If the browser |
| 227 * knows you do not need to handle touch events, it can handle them at a | 227 * knows you do not need to handle touch events, it can handle them at a |
| 228 * higher level and achieve higher performance. | 228 * higher level and achieve higher performance. |
| 229 */ | 229 */ |
| 230 PP_INPUTEVENT_CLASS_TOUCH = 1 << 3, | 230 PP_INPUTEVENT_CLASS_TOUCH = 1 << 3, |
| 231 /** | 231 /** |
| 232 * Identifies IME composition input events. | 232 * Identifies IME composition input events. |
| 233 * | 233 * |
| 234 * Request this input event class if you allow on-the-spot IME input. | 234 * Request this input event class if you allow on-the-spot IME input. |
| 235 */ | 235 */ |
| 236 PP_INPUTEVENT_CLASS_IME = 1 << 4 | 236 PP_INPUTEVENT_CLASS_IME = 1 << 4, |
| 237 /** |
| 238 * Requests low-level keyboard events. Instead of Windows virtual key code, |
| 239 * this will return USB scan codes for each key press. |
| 240 * |
| 241 * As with PP_INPUTEVENT_CLASS_KEYBOARD, you will usually want to request |
| 242 * filtered mode so you can pass on the events. |
| 243 */ |
| 244 PP_INPUTEVENT_CLASS_LOWLEVEL_KEYBOARD_Dev = 1 << 5 |
| 237 } PP_InputEvent_Class; | 245 } PP_InputEvent_Class; |
| 238 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Class, 4); | 246 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Class, 4); |
| 239 /** | 247 /** |
| 240 * @} | 248 * @} |
| 241 */ | 249 */ |
| 242 | 250 |
| 243 /** | 251 /** |
| 244 * @addtogroup Interfaces | 252 * @addtogroup Interfaces |
| 245 * @{ | 253 * @{ |
| 246 */ | 254 */ |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 struct PP_Var (*GetCharacterText)(PP_Resource character_event); | 713 struct PP_Var (*GetCharacterText)(PP_Resource character_event); |
| 706 }; | 714 }; |
| 707 | 715 |
| 708 typedef struct PPB_KeyboardInputEvent_1_0 PPB_KeyboardInputEvent; | 716 typedef struct PPB_KeyboardInputEvent_1_0 PPB_KeyboardInputEvent; |
| 709 /** | 717 /** |
| 710 * @} | 718 * @} |
| 711 */ | 719 */ |
| 712 | 720 |
| 713 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ | 721 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ |
| 714 | 722 |
| OLD | NEW |