OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_EVENTS_GESTURE_DETECTION_VELOCITY_TRACKER_H_ | 5 #ifndef UI_EVENTS_GESTURE_DETECTION_VELOCITY_TRACKER_H_ |
6 #define UI_EVENTS_GESTURE_DETECTION_VELOCITY_TRACKER_H_ | 6 #define UI_EVENTS_GESTURE_DETECTION_VELOCITY_TRACKER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 // Gets an estimator for the recent movements of the specified pointer id. | 135 // Gets an estimator for the recent movements of the specified pointer id. |
136 // Returns false and clears the estimator if there is no information available | 136 // Returns false and clears the estimator if there is no information available |
137 // about the pointer. | 137 // about the pointer. |
138 bool GetEstimator(uint32_t id, Estimator* out_estimator) const; | 138 bool GetEstimator(uint32_t id, Estimator* out_estimator) const; |
139 | 139 |
140 base::TimeTicks last_event_time_; | 140 base::TimeTicks last_event_time_; |
141 BitSet32 current_pointer_id_bits_; | 141 BitSet32 current_pointer_id_bits_; |
142 int32_t active_pointer_id_; | 142 int32_t active_pointer_id_; |
143 scoped_ptr<VelocityTrackerStrategy> strategy_; | 143 scoped_ptr<VelocityTrackerStrategy> strategy_; |
| 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(VelocityTracker); |
144 }; | 146 }; |
145 | 147 |
146 } // namespace ui | 148 } // namespace ui |
147 | 149 |
148 #endif // UI_EVENTS_GESTURE_DETECTION_VELOCITY_TRACKER_H_ | 150 #endif // UI_EVENTS_GESTURE_DETECTION_VELOCITY_TRACKER_H_ |
OLD | NEW |