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

Unified Diff: ppapi/api/pp_input_event.idl

Issue 7308010: Formatting changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/api/pp_input_event.idl
===================================================================
--- ppapi/api/pp_input_event.idl (revision 96186)
+++ ppapi/api/pp_input_event.idl (working copy)
@@ -128,10 +128,9 @@
uint32_t modifier;
/**
- * Indicates the amount vertically and horizontally the user has requested
- * to scroll by with their mouse wheel. A scroll down or to the right (where
- * the content moves up or left) is represented as positive values, and
- * a scroll up or to the left (where the content moves down or right) is
+ * The mouse wheel's horizontal scroll amount. A scroll to the right
+ * (where the content moves left) is represented as positive values,
+ * and a scroll to the left (where the content moves right) is
* represented as negative values.
*
* The units are either in pixels (when scroll_by_page is false) or pages
@@ -150,7 +149,26 @@
*/
float_t delta_x;
- /** This value represents */
+ /**
+ * The mouse whee's vertical scroll amount. A scroll to the right
der Springer 2011/08/10 21:35:43 whee -> wheel
jond 2011/08/11 19:12:27 Done.
+ * (where the content moves left) is represented as positive values,
der Springer 2011/08/10 21:35:43 Replace (left/right) with (down/up): A scroll dow
jond 2011/08/11 19:12:27 Done.
+ * and a scroll to the left (where the content moves right) is
+ * represented as negative values.
+ *
+ * The units are either in pixels (when scroll_by_page is false) or pages
+ * (when scroll_by_page is true). For example, delta_y = -3 means scroll up 3
+ * pixels when scroll_by_page is false, and scroll up 3 pages when
+ * scroll_by_page is true.
+ *
+ * This amount is system dependent and will take into account the user's
+ * preferred scroll sensitivity and potentially also nonlinear acceleration
+ * based on the speed of the scrolling.
+ *
+ * Devices will be of varying resolution. Some mice with large detents will
+ * only generate integer scroll amounts. But fractional values are also
+ * possible, for example, on some trackpads and newer mice that don't have
+ * "clicks".
+ */
float_t delta_y;
/**

Powered by Google App Engine
This is Rietveld 408576698