Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: ppapi/c/ppb_input_event.h

Issue 10543159: ppapi: Add support for touch events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 Mar 5 10:11:05 2012. */ 6 /* From ppb_input_event.idl modified Mon Mar 5 10:11:05 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
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 * Notification that an input method composition process has completed. 137 * Notification that an input method composition process has completed.
138 * 138 *
139 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. 139 * Register for this event using the PP_INPUTEVENT_CLASS_IME class.
140 */ 140 */
141 PP_INPUTEVENT_TYPE_IME_COMPOSITION_END = 13, 141 PP_INPUTEVENT_TYPE_IME_COMPOSITION_END = 13,
142 /** 142 /**
143 * Notification that an input method committed a string. 143 * Notification that an input method committed a string.
144 * 144 *
145 * Register for this event using the PP_INPUTEVENT_CLASS_IME class. 145 * Register for this event using the PP_INPUTEVENT_CLASS_IME class.
146 */ 146 */
147 PP_INPUTEVENT_TYPE_IME_TEXT = 14 147 PP_INPUTEVENT_TYPE_IME_TEXT = 14,
148 /**
149 * Notification that a finger was placed on a touch-enabled device.
150 *
151 * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.
152 */
153 PP_INPUTEVENT_TYPE_TOUCHSTART = 15,
154 /**
155 * Notification that a finger was moved on a touch-enabled device.
156 *
157 * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.
158 */
159 PP_INPUTEVENT_TYPE_TOUCHMOVE = 16,
160 /**
161 * Notification that a finger was released on a touch-enabled device.
162 *
163 * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.
164 */
165 PP_INPUTEVENT_TYPE_TOUCHEND = 17,
166 /**
167 * Notification that a touch event was canceled.
168 *
169 * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.
170 */
171 PP_INPUTEVENT_TYPE_TOUCHCANCEL = 18
148 } PP_InputEvent_Type; 172 } PP_InputEvent_Type;
149 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Type, 4); 173 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Type, 4);
150 174
151 /** 175 /**
152 * This enumeration contains event modifier constants. Each modifier is one 176 * This enumeration contains event modifier constants. Each modifier is one
153 * bit. Retrieve the modifiers from an input event using the GetEventModifiers 177 * bit. Retrieve the modifiers from an input event using the GetEventModifiers
154 * function on PPB_InputEvent. 178 * function on PPB_InputEvent.
155 */ 179 */
156 typedef enum { 180 typedef enum {
157 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, 181 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0,
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 struct PP_Var (*GetCharacterText)(PP_Resource character_event); 728 struct PP_Var (*GetCharacterText)(PP_Resource character_event);
705 }; 729 };
706 730
707 typedef struct PPB_KeyboardInputEvent_1_0 PPB_KeyboardInputEvent; 731 typedef struct PPB_KeyboardInputEvent_1_0 PPB_KeyboardInputEvent;
708 /** 732 /**
709 * @} 733 * @}
710 */ 734 */
711 735
712 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ 736 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */
713 737
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698