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

Unified Diff: third_party/WebKit/public/web/WebInputEvent.h

Issue 1749343004: Implement Wheel Gesture Scrolling on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only high precision scroll begins are used Created 4 years, 9 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/render_widget.cc ('k') | ui/events/blink/input_handler_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebInputEvent.h
diff --git a/third_party/WebKit/public/web/WebInputEvent.h b/third_party/WebKit/public/web/WebInputEvent.h
index 3be5b18ebb24d3d90a822ec613be11e02767e113..d2e24f8f1e33fe979d8ea99fdb3fba8873e4faaf 100644
--- a/third_party/WebKit/public/web/WebInputEvent.h
+++ b/third_party/WebKit/public/web/WebInputEvent.h
@@ -513,6 +513,14 @@ public:
// If true, this event will skip hit testing to find a scroll
// target and instead just scroll the viewport.
bool targetViewport;
+ // If true, this event comes after a non-inertial gesture
+ // scroll sequence; OSX has unique phases for normal and
+ // momentum scroll events. Should always be false for touch based
+ // input as it generates GestureFlingStart instead.
+ bool inertial;
+ // True if this event was synthesized in order to force a hit test; avoiding scroll
+ // latching behavior until crbug.com/526463 is fully implemented.
+ bool synthetic;
} scrollBegin;
struct {
@@ -536,6 +544,16 @@ public:
// The original delta units the scrollBegin and scrollUpdates
// were sent as.
ScrollUnits deltaUnits;
+ // If true, this event comes after an inertial gesture
+ // scroll sequence; OSX has unique phases for normal and
+ // momentum scroll events. Should always be false for touch based
+ // input as it generates GestureFlingStart instead.
+ bool inertial;
+ // True if this event was synthesized in order to generate the proper
+ // GSB/GSU/GSE matching sequences. This is a temporary so that a future
+ // GSB will generate a hit test so latching behavior is avoided
+ // until crbug.com/526463 is fully implemented.
+ bool synthetic;
} scrollEnd;
struct {
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ui/events/blink/input_handler_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698