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

Side by Side 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, 5 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_INPUT_SCROLL_STATE_DATA_H_ 5 #ifndef CC_INPUT_SCROLL_STATE_DATA_H_
6 #define CC_INPUT_SCROLL_STATE_DATA_H_ 6 #define CC_INPUT_SCROLL_STATE_DATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
11 11
12 #include "cc/cc_export.h" 12 #include "cc/cc_export.h"
13 #include "cc/trees/property_tree.h" 13 #include "cc/trees/property_tree.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 class CC_EXPORT ScrollStateData { 17 class CC_EXPORT ScrollStateData {
18 public: 18 public:
19 ScrollStateData(); 19 ScrollStateData();
20 ScrollStateData(const ScrollStateData& other); 20 ScrollStateData(const ScrollStateData& other);
21 21
22 // Scroll delta in viewport coordinates (DIP). 22 // Scroll delta in viewport coordinates (DIP).
23 double delta_x; 23 double delta_x;
24 double delta_y; 24 double delta_y;
25 // Scroll delta hint in viewport coordinates (DIP).
26 // Delta hints are equal to deltas of the first gesture scroll update event in
27 // a scroll sequence and are used for hittesting.
28 double delta_x_hint;
29 double delta_y_hint;
25 // Pointer (i.e. cursor/touch point) position in viewport coordinates (DIP). 30 // Pointer (i.e. cursor/touch point) position in viewport coordinates (DIP).
26 int position_x; 31 int position_x;
27 int position_y; 32 int position_y;
28 // Scroll velocity in DIP/seconds. 33 // Scroll velocity in DIP/seconds.
29 double velocity_x; 34 double velocity_x;
30 double velocity_y; 35 double velocity_y;
31 36
32 bool is_beginning; 37 bool is_beginning;
33 bool is_in_inertial_phase; 38 bool is_in_inertial_phase;
34 bool is_ending; 39 bool is_ending;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // The last scroll node to respond to a scroll, or null if none exists. 73 // The last scroll node to respond to a scroll, or null if none exists.
69 ScrollNode* current_native_scrolling_node_; 74 ScrollNode* current_native_scrolling_node_;
70 // The id of the last native element to respond to a scroll, or 0 if none 75 // The id of the last native element to respond to a scroll, or 0 if none
71 // exists. 76 // exists.
72 ElementId current_native_scrolling_element_; 77 ElementId current_native_scrolling_element_;
73 }; 78 };
74 79
75 } // namespace cc 80 } // namespace cc
76 81
77 #endif // CC_INPUT_SCROLL_STATE_DATA_H_ 82 #endif // CC_INPUT_SCROLL_STATE_DATA_H_
OLDNEW
« 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