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 /** | 6 /** |
7 * This file defines the Input Event interfaces. | 7 * This file defines the Input Event interfaces. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 * | 126 * |
127 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. | 127 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. |
128 */ | 128 */ |
129 PP_INPUTEVENT_TYPE_IME_COMPOSITION_END = 13, | 129 PP_INPUTEVENT_TYPE_IME_COMPOSITION_END = 13, |
130 | 130 |
131 /** | 131 /** |
132 * Notification that an input method committed a string. | 132 * Notification that an input method committed a string. |
133 * | 133 * |
134 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. | 134 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. |
135 */ | 135 */ |
136 PP_INPUTEVENT_TYPE_IME_TEXT = 14 | 136 PP_INPUTEVENT_TYPE_IME_TEXT = 14, |
| 137 |
| 138 /** |
| 139 * Notification that a finger was placed on a touch-enabled device. |
| 140 * |
| 141 * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class. |
| 142 */ |
| 143 PP_INPUTEVENT_TYPE_TOUCHSTART = 15, |
| 144 |
| 145 /** |
| 146 * Notification that a finger was moved on a touch-enabled device. |
| 147 * |
| 148 * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class. |
| 149 */ |
| 150 PP_INPUTEVENT_TYPE_TOUCHMOVE = 16, |
| 151 |
| 152 /** |
| 153 * Notification that a finger was released on a touch-enabled device. |
| 154 * |
| 155 * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class. |
| 156 */ |
| 157 PP_INPUTEVENT_TYPE_TOUCHEND = 17, |
| 158 |
| 159 /** |
| 160 * Notification that a touch event was canceled. |
| 161 * |
| 162 * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class. |
| 163 */ |
| 164 PP_INPUTEVENT_TYPE_TOUCHCANCEL = 18 |
137 }; | 165 }; |
138 | 166 |
139 /** | 167 /** |
140 * This enumeration contains event modifier constants. Each modifier is one | 168 * This enumeration contains event modifier constants. Each modifier is one |
141 * bit. Retrieve the modifiers from an input event using the GetEventModifiers | 169 * bit. Retrieve the modifiers from an input event using the GetEventModifiers |
142 * function on PPB_InputEvent. | 170 * function on PPB_InputEvent. |
143 */ | 171 */ |
144 [assert_size(4)] | 172 [assert_size(4)] |
145 enum PP_InputEvent_Modifier { | 173 enum PP_InputEvent_Modifier { |
146 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, | 174 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 * @param[in] character_event A <code>PP_Resource</code> corresponding to a | 751 * @param[in] character_event A <code>PP_Resource</code> corresponding to a |
724 * keyboard event. | 752 * keyboard event. |
725 * | 753 * |
726 * @return A string var representing a single typed character for character | 754 * @return A string var representing a single typed character for character |
727 * input events. For non-character input events the return value will be an | 755 * input events. For non-character input events the return value will be an |
728 * undefined var. | 756 * undefined var. |
729 */ | 757 */ |
730 PP_Var GetCharacterText([in] PP_Resource character_event); | 758 PP_Var GetCharacterText([in] PP_Resource character_event); |
731 }; | 759 }; |
732 | 760 |
OLD | NEW |