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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollState.h

Issue 2907053004: GSB uses delta_hints to calculate scrolling chain. (Closed)
Patch Set: debug version Created 3 years, 7 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: third_party/WebKit/Source/core/page/scrolling/ScrollState.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollState.h b/third_party/WebKit/Source/core/page/scrolling/ScrollState.h
index d9d893931269f3ef5c8a72e73cf7f12586e3e405..4660bd504205875acd7cda7e04b0a4e97648edd6 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollState.h
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollState.h
@@ -43,6 +43,12 @@ class CORE_EXPORT ScrollState final
double deltaX() const { return data_->delta_x; };
// Positive when scrolling down.
double deltaY() const { return data_->delta_y; };
+ // Positive when scrolling right.
+ double deltaXHint() const { return data_->delta_x_hint; };
+ // Positive when scrolling down.
+ double deltaYHint() const { return data_->delta_y_hint; };
+ // Indicates whether delta hints should be ignored while handling GSB or not.
+ bool ignoreDeltaHints() const { return data_->ignore_delta_hints; };
// Indicates the smallest delta the input device can produce. 0 for
// unquantized inputs.
double deltaGranularity() const { return data_->delta_granularity; };

Powered by Google App Engine
This is Rietveld 408576698