+2013-02-13 Sadrul Habib Chowdhury <sadrul@chromium.org>
+
+ [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 <yosin@chromium.org>
Unreviewed. Build fix for Chromium-Win.
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;
, deltaY(0.0f)
, wheelTicksX(0.0f)
, wheelTicksY(0.0f)
+ , accelerationRatioX(1.0f)
+ , accelerationRatioY(1.0f)
, scrollByPage(false)
, hasPreciseScrollingDeltas(false)
, phase(PhaseNone)