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

Unified Diff: ui/events/gesture_detection/motion_event_buffer.h

Issue 2628393003: Remove ScopedVector from ui/events/. (Closed)
Patch Set: chromeos2 Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/gesture_detection/motion_event_buffer.h
diff --git a/ui/events/gesture_detection/motion_event_buffer.h b/ui/events/gesture_detection/motion_event_buffer.h
index 9eb1c4c3bc55b9245097307a2fea7e69f84a331a..68a84495c0e89fe6d7f7d8097a3c88a840901fed 100644
--- a/ui/events/gesture_detection/motion_event_buffer.h
+++ b/ui/events/gesture_detection/motion_event_buffer.h
@@ -6,9 +6,9 @@
#define UI_EVENTS_GESTURE_DETECTION_MOTION_EVENT_BUFFER_H_
#include <memory>
+#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
#include "base/time/time.h"
#include "ui/events/gesture_detection/gesture_detection_export.h"
@@ -55,13 +55,15 @@ class GESTURE_DETECTION_EXPORT MotionEventBuffer {
void Flush(base::TimeTicks frame_time);
private:
- typedef ScopedVector<MotionEventGeneric> MotionEventVector;
+ using MotionEventVector = std::vector<std::unique_ptr<MotionEventGeneric>>;
void FlushWithResampling(MotionEventVector events,
base::TimeTicks resample_time);
void FlushWithoutResampling(MotionEventVector events);
MotionEventBufferClient* const client_;
+
+ // An ordered vector of buffered events.
MotionEventVector buffered_events_;
// Time of the most recently extrapolated event. This will be 0 if the

Powered by Google App Engine
This is Rietveld 408576698