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

Unified Diff: cc/input/scroll_state_data.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/scroll_state.h ('k') | cc/input/scroll_state_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scroll_state_data.h
diff --git a/cc/input/scroll_state_data.h b/cc/input/scroll_state_data.h
index f3559a89d0758fe72bd43cfe0f2e3b1b964e0e6d..ba33e46626bc2028fc32c012a0591a6cc2b9cf03 100644
--- a/cc/input/scroll_state_data.h
+++ b/cc/input/scroll_state_data.h
@@ -22,6 +22,11 @@ class CC_EXPORT ScrollStateData {
// Scroll delta in viewport coordinates (DIP).
double delta_x;
double delta_y;
+ // Scroll delta hint in viewport coordinates (DIP).
+ // Delta hints are equal to deltas of the first gesture scroll update event in
+ // a scroll sequence and are used for hittesting.
+ double delta_x_hint;
+ double delta_y_hint;
// Pointer (i.e. cursor/touch point) position in viewport coordinates (DIP).
int position_x;
int position_y;
« no previous file with comments | « cc/input/scroll_state.h ('k') | cc/input/scroll_state_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698