Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 event may be the start of a fling (is_beginning && | |
| 36 // in_inertial_phase). May only be true if is_ending == true. | |
| 37 bool may_precede_fling; | |
|
tdresser
2016/11/22 21:44:40
Shouldn't this be |precedes_fling| now? Don't we o
sahel
2016/11/24 15:28:55
In case of a touchpad fling, the scrollBegin/scrol
tdresser
2016/11/28 15:25:17
I'm not quite following this.
You're saying the o
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |