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

Side by Side Diff: ui/events/gesture_detection/velocity_tracker.h

Issue 233433005: Remove static-initializeres from VelocityTracker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win build Created 6 years, 8 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 | « no previous file | ui/events/gesture_detection/velocity_tracker.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 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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/events/gesture_detection/velocity_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698