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

Unified Diff: cc/input/scroll_state.h

Issue 2907053004: GSB uses delta_hints to calculate scrolling chain. (Closed)
Patch Set: review comments addressed. Created 3 years, 6 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: cc/input/scroll_state.h
diff --git a/cc/input/scroll_state.h b/cc/input/scroll_state.h
index 74823e4ba85abc899fa384a9ac85d5a31d16fe61..a7e5ec6fbae6b2c8f8aebe58cec465e2d7afb88a 100644
--- a/cc/input/scroll_state.h
+++ b/cc/input/scroll_state.h
@@ -34,6 +34,11 @@ class CC_EXPORT ScrollState {
double delta_x() const { return data_.delta_x; }
// Positive when scrolling down.
double delta_y() const { return data_.delta_y; }
+ // Positive when scrolling right.
+ double delta_x_hint() const { return data_.delta_x_hint; }
+ // Positive when scrolling down.
+ double delta_y_hint() const { return data_.delta_y_hint; }
+ bool ignore_delta_hints() const { return data_.ignore_delta_hints; }
// The location associated with this scroll update. For touch, this is the
// position of the finger. For mouse, the location of the cursor.
int position_x() const { return data_.position_x; }

Powered by Google App Engine
This is Rietveld 408576698