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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/c/ppb_input_event.h
diff --git a/ppapi/c/ppb_input_event.h b/ppapi/c/ppb_input_event.h
index 2eb288c84029e09efbcbab35c7aebf6463a2249c..e74074324c9667dd08cada01d7ecca6de4a336bb 100644
--- a/ppapi/c/ppb_input_event.h
+++ b/ppapi/c/ppb_input_event.h
@@ -144,7 +144,31 @@ typedef enum {
*
* Register for this event using the PP_INPUTEVENT_CLASS_IME class.
*/
- PP_INPUTEVENT_TYPE_IME_TEXT = 14
+ PP_INPUTEVENT_TYPE_IME_TEXT = 14,
+ /**
+ * Notification that a finger was placed on a touch-enabled device.
+ *
+ * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.
+ */
+ PP_INPUTEVENT_TYPE_TOUCHSTART = 15,
+ /**
+ * Notification that a finger was moved on a touch-enabled device.
+ *
+ * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.
+ */
+ PP_INPUTEVENT_TYPE_TOUCHMOVE = 16,
+ /**
+ * Notification that a finger was released on a touch-enabled device.
+ *
+ * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.
+ */
+ PP_INPUTEVENT_TYPE_TOUCHEND = 17,
+ /**
+ * Notification that a touch event was canceled.
+ *
+ * Register for this event using the PP_INPUTEVENT_CLASS_TOUCH class.
+ */
+ PP_INPUTEVENT_TYPE_TOUCHCANCEL = 18
} PP_InputEvent_Type;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Type, 4);

Powered by Google App Engine
This is Rietveld 408576698