| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 Wed Aug 24 09:43:38 2011. */ | 6 /* From ppb_input_event.idl modified Wed Sep 14 12:46:14 2011. */ |
| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 * on the key, locale, and operating system. | 110 * on the key, locale, and operating system. |
| 111 * | 111 * |
| 112 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class. | 112 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class. |
| 113 */ | 113 */ |
| 114 PP_INPUTEVENT_TYPE_CHAR = 9, | 114 PP_INPUTEVENT_TYPE_CHAR = 9, |
| 115 /** | 115 /** |
| 116 * TODO(brettw) when is this used? | 116 * TODO(brettw) when is this used? |
| 117 * | 117 * |
| 118 * Register for this event using the PP_INPUTEVENT_CLASS_MOUSE class. | 118 * Register for this event using the PP_INPUTEVENT_CLASS_MOUSE class. |
| 119 */ | 119 */ |
| 120 PP_INPUTEVENT_TYPE_CONTEXTMENU = 10 | 120 PP_INPUTEVENT_TYPE_CONTEXTMENU = 10, |
| 121 /** |
| 122 * Notification that an input method composition process has just started. |
| 123 * |
| 124 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. |
| 125 */ |
| 126 PP_INPUTEVENT_TYPE_COMPOSITION_START = 11, |
| 127 /** |
| 128 * Notification that the input method composition string is updated. |
| 129 * |
| 130 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. |
| 131 */ |
| 132 PP_INPUTEVENT_TYPE_COMPOSITION_UPDATE = 12, |
| 133 /** |
| 134 * Notification that an input method composition process has completed. |
| 135 * |
| 136 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. |
| 137 */ |
| 138 PP_INPUTEVENT_TYPE_COMPOSITION_END = 13, |
| 139 /** |
| 140 * Notification that an input method committed a string. |
| 141 * |
| 142 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. |
| 143 */ |
| 144 PP_INPUTEVENT_TYPE_IME_TEXT = 14 |
| 121 } PP_InputEvent_Type; | 145 } PP_InputEvent_Type; |
| 122 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Type, 4); | 146 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Type, 4); |
| 123 | 147 |
| 124 /** | 148 /** |
| 125 * This enumeration contains event modifier constants. Each modifier is one | 149 * This enumeration contains event modifier constants. Each modifier is one |
| 126 * bit. Retrieve the modifiers from an input event using the GetEventModifiers | 150 * bit. Retrieve the modifiers from an input event using the GetEventModifiers |
| 127 * function on PPB_InputEvent. | 151 * function on PPB_InputEvent. |
| 128 */ | 152 */ |
| 129 typedef enum { | 153 typedef enum { |
| 130 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, | 154 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 * undefined var. | 697 * undefined var. |
| 674 */ | 698 */ |
| 675 struct PP_Var (*GetCharacterText)(PP_Resource character_event); | 699 struct PP_Var (*GetCharacterText)(PP_Resource character_event); |
| 676 }; | 700 }; |
| 677 /** | 701 /** |
| 678 * @} | 702 * @} |
| 679 */ | 703 */ |
| 680 | 704 |
| 681 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ | 705 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ |
| 682 | 706 |
| OLD | NEW |