Title: [142752] trunk/Source/WebKit/chromium
Revision
142752
Author
[email protected]
Date
2013-02-13 08:25:05 -0800 (Wed, 13 Feb 2013)

Log Message

[chromium] Add acceleration ratios for the deltas to WebMouseWheelEvents.
https://bugs.webkit.org/show_bug.cgi?id=109611

The deltas in mousewheel events generated by track can be accelerated (e.g. when
scrolling repeatedly). Keep track of the ratio of the acceleration since that is
useful for some tasks (e.g. overflow navigation gesture).

Patch by Sadrul Habib Chowdhury <[email protected]> on 2013-02-13
Reviewed by Adam Barth.

* public/WebInputEvent.h:
(WebKit::WebMouseWheelEvent::WebMouseWheelEvent):
* src/WebInputEvent.cpp:
(SameSizeAsWebMouseWheelEvent):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (142751 => 142752)


--- trunk/Source/WebKit/chromium/ChangeLog	2013-02-13 16:23:29 UTC (rev 142751)
+++ trunk/Source/WebKit/chromium/ChangeLog	2013-02-13 16:25:05 UTC (rev 142752)
@@ -1,3 +1,19 @@
+2013-02-13  Sadrul Habib Chowdhury  <[email protected]>
+
+        [chromium] Add acceleration ratios for the deltas to WebMouseWheelEvents.
+        https://bugs.webkit.org/show_bug.cgi?id=109611
+
+        The deltas in mousewheel events generated by track can be accelerated (e.g. when
+        scrolling repeatedly). Keep track of the ratio of the acceleration since that is
+        useful for some tasks (e.g. overflow navigation gesture).
+
+        Reviewed by Adam Barth.
+
+        * public/WebInputEvent.h:
+        (WebKit::WebMouseWheelEvent::WebMouseWheelEvent):
+        * src/WebInputEvent.cpp:
+        (SameSizeAsWebMouseWheelEvent):
+
 2013-02-12  Yoshifumi Inoue  <[email protected]>
 
         Unreviewed. Build fix for Chromium-Win.

Modified: trunk/Source/WebKit/chromium/public/WebInputEvent.h (142751 => 142752)


--- trunk/Source/WebKit/chromium/public/WebInputEvent.h	2013-02-13 16:23:29 UTC (rev 142751)
+++ trunk/Source/WebKit/chromium/public/WebInputEvent.h	2013-02-13 16:25:05 UTC (rev 142752)
@@ -367,6 +367,9 @@
     float wheelTicksX;
     float wheelTicksY;
 
+    float accelerationRatioX;
+    float accelerationRatioY;
+
     // See comment at the top of the file for why an int is used here.
     int scrollByPage;
 
@@ -381,6 +384,8 @@
         , deltaY(0.0f)
         , wheelTicksX(0.0f)
         , wheelTicksY(0.0f)
+        , accelerationRatioX(1.0f)
+        , accelerationRatioY(1.0f)
         , scrollByPage(false)
         , hasPreciseScrollingDeltas(false)
         , phase(PhaseNone)

Modified: trunk/Source/WebKit/chromium/src/WebInputEvent.cpp (142751 => 142752)


--- trunk/Source/WebKit/chromium/src/WebInputEvent.cpp	2013-02-13 16:23:29 UTC (rev 142751)
+++ trunk/Source/WebKit/chromium/src/WebInputEvent.cpp	2013-02-13 16:25:05 UTC (rev 142752)
@@ -56,7 +56,7 @@
 };
 
 struct SameSizeAsWebMouseWheelEvent : public SameSizeAsWebMouseEvent {
-    int mousewheelData[8];
+    int mousewheelData[10];
 };
 
 struct SameSizeAsWebGestureEvent : public SameSizeAsWebInputEvent {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to