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

Unified Diff: cc/input/scroll_state.h

Issue 2907053004: GSB uses delta_hints to calculate scrolling chain. (Closed)
Patch Set: Merge branch 'master' into GSB_checks_delta_hints 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
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/input/scroll_state_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scroll_state.h
diff --git a/cc/input/scroll_state.h b/cc/input/scroll_state.h
index 74823e4ba85abc899fa384a9ac85d5a31d16fe61..eb0c7fa95beba6496a68547fb3d84c6076713c92 100644
--- a/cc/input/scroll_state.h
+++ b/cc/input/scroll_state.h
@@ -34,6 +34,10 @@ 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; }
// 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; }
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/input/scroll_state_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698