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

Unified Diff: ppapi/api/ppb_input_event.idl

Issue 2890323002: Add tilt_x and tilt_y to ppapi touchpoint. (Closed)
Patch Set: Add tilt_x and tilt_y to ppapi touchpoint. Created 3 years, 7 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
« no previous file with comments | « content/renderer/pepper/event_conversion.cc ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/ppb_input_event.idl
diff --git a/ppapi/api/ppb_input_event.idl b/ppapi/api/ppb_input_event.idl
index 25d2afb4f1c20840f82ae2a49ebf9f0b97bc1cd6..43dd1345a6ef2a48103a6f1cac4246ff929d5377 100644
--- a/ppapi/api/ppb_input_event.idl
+++ b/ppapi/api/ppb_input_event.idl
@@ -11,7 +11,8 @@ label Chrome {
M13 = 1.0,
M14 = 1.1,
M34 = 1.2,
- M55 = 1.3
+ M55 = 1.3,
+ M60 = 1.4
};
/**
@@ -962,6 +963,42 @@ interface PPB_TouchInputEvent {
PP_TouchPoint GetTouchById([in] PP_Resource resource,
[in] PP_TouchListType list,
[in] uint32_t touch_id);
+
+ /**
+ * Returns the touch-tilt with the specified index in the specified list.
+ *
+ * @param[in] resource A <code>PP_Resource</code> corresponding to a touch
+ * event.
+ *
+ * @param[in] list The list.
+ *
+ * @param[in] index The index.
+ *
+ * @return A <code>PP_FloatPoint</code> representing the tilt of the
+ * touch-point.
+ */
+ [version=1.4]
+ PP_FloatPoint GetTouchTiltByIndex([in] PP_Resource resource,
+ [in] PP_TouchListType list,
+ [in] uint32_t index);
+
+ /**
+ * Returns the touch-tilt with the specified touch-id in the specified list.
+ *
+ * @param[in] resource A <code>PP_Resource</code> corresponding to a touch
+ * event.
+ *
+ * @param[in] list The list.
+ *
+ * @param[in] touch_id The id of the touch-point.
+ *
+ * @return A <code>PP_FloatPoint</code> representing the tilt of the
+ * touch-point.
+ */
+ [version=1.4]
+ PP_FloatPoint GetTouchTiltById([in] PP_Resource resource,
+ [in] PP_TouchListType list,
+ [in] uint32_t touch_id);
};
[macro="PPB_IME_INPUT_EVENT_INTERFACE"]
« no previous file with comments | « content/renderer/pepper/event_conversion.cc ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698