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

Unified Diff: ppapi/c/ppb_input_event.h

Issue 11418134: ppapi: Opt-in to receive synthetic mouse events for touch-events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 1 month 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 | « ppapi/api/ppb_input_event.idl ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppb_input_event.h
diff --git a/ppapi/c/ppb_input_event.h b/ppapi/c/ppb_input_event.h
index 6122b586370b07e65f15457e5d52471495e64055..bc6ebcb6f7900d63d12e41047908babedf3be78c 100644
--- a/ppapi/c/ppb_input_event.h
+++ b/ppapi/c/ppb_input_event.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From ppb_input_event.idl modified Tue Aug 14 09:41:28 2012. */
+/* From ppb_input_event.idl modified Mon Nov 26 19:51:21 2012. */
#ifndef PPAPI_C_PPB_INPUT_EVENT_H_
#define PPAPI_C_PPB_INPUT_EVENT_H_
@@ -274,7 +274,12 @@ typedef enum {
*
* Request touch events only if you intend to handle them. If the browser
* knows you do not need to handle touch events, it can handle them at a
- * higher level and achieve higher performance.
+ * higher level and achieve higher performance. If the plugin does not
+ * register for touch-events, then it will receive synthetic mouse events that
+ * are generated from the touch events (e.g. mouse-down for touch-start,
+ * mouse-move for touch-move (with left-button down), and mouse-up for
+ * touch-end. If the plugin does register for touch events, then the synthetic
+ * mouse events are not created.
*/
PP_INPUTEVENT_CLASS_TOUCH = 1 << 3,
/**
@@ -321,6 +326,9 @@ struct PPB_InputEvent_1_0 {
* processed very quickly, may have a noticeable effect on the performance of
* the page.
*
+ * Note that synthetic mouse events will be generated from touch events if
+ * (and only if) the you do not request touch events.
+ *
* When requesting input events through this function, the events will be
* delivered and <i>not</i> bubbled to the page. This means that even if you
* aren't interested in the message, no other parts of the page will get
« no previous file with comments | « ppapi/api/ppb_input_event.idl ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698