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

Side by Side Diff: cc/input/scroll_state_data.h

Issue 2486673008: Touchpad scroll latching enabled for Mac behind flag. (Closed)
Patch Set: mayPrecedeFling->precedeFling Created 4 years 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
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>
(...skipping 14 matching lines...) Expand all
25 // Pointer (i.e. cursor/touch point) position in viewport coordinates (DIP). 25 // Pointer (i.e. cursor/touch point) position in viewport coordinates (DIP).
26 int position_x; 26 int position_x;
27 int position_y; 27 int position_y;
28 // Scroll velocity in DIP/seconds. 28 // Scroll velocity in DIP/seconds.
29 double velocity_x; 29 double velocity_x;
30 double velocity_y; 30 double velocity_y;
31 31
32 bool is_beginning; 32 bool is_beginning;
33 bool is_in_inertial_phase; 33 bool is_in_inertial_phase;
34 bool is_ending; 34 bool is_ending;
35 // True if the next ScrollBegin is in inertial_phase (is_beginning &&
36 // in_inertial_phase). May only be true if is_ending == true.
37 bool precede_fling;
tdresser 2016/11/29 19:06:54 nit: precedes_fling?
sahel 2016/11/30 19:41:54 Sorry, English is not my first language., Done.
35 38
36 bool should_propagate; 39 bool should_propagate;
37 bool from_user_input; 40 bool from_user_input;
38 41
39 // Whether the scroll sequence has had any delta consumed, in the 42 // Whether the scroll sequence has had any delta consumed, in the
40 // current frame, or any child frames. 43 // current frame, or any child frames.
41 bool delta_consumed_for_scroll_sequence; 44 bool delta_consumed_for_scroll_sequence;
42 // True if the user interacts directly with the display, e.g., via 45 // True if the user interacts directly with the display, e.g., via
43 // touch. 46 // touch.
44 bool is_direct_manipulation; 47 bool is_direct_manipulation;
(...skipping 23 matching lines...) Expand all
68 // The last scroll node to respond to a scroll, or null if none exists. 71 // The last scroll node to respond to a scroll, or null if none exists.
69 ScrollNode* current_native_scrolling_node_; 72 ScrollNode* current_native_scrolling_node_;
70 // The id of the last native element to respond to a scroll, or 0 if none 73 // The id of the last native element to respond to a scroll, or 0 if none
71 // exists. 74 // exists.
72 ElementId current_native_scrolling_element_; 75 ElementId current_native_scrolling_element_;
73 }; 76 };
74 77
75 } // namespace cc 78 } // namespace cc
76 79
77 #endif // CC_INPUT_SCROLL_STATE_DATA_H_ 80 #endif // CC_INPUT_SCROLL_STATE_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | cc/input/scroll_state_data.cc » ('j') | content/browser/renderer_host/input/mouse_wheel_event_queue.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698