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

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

Issue 502993004: Remove abstract Clone and Cancel methods from MotionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nasty bug fix Created 6 years, 2 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
« no previous file with comments | « ui/events/gesture_detection/motion_event.cc ('k') | ui/events/gesture_detection/motion_event_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 498d55354b77733a3d4fbc6e4d8d0f6b603b2929..7a5e5972c11c0e7521948f3d27dc55cd59c548e3 100644
--- a/ui/events/gesture_detection/motion_event_buffer.h
+++ b/ui/events/gesture_detection/motion_event_buffer.h
@@ -13,6 +13,7 @@
namespace ui {
class MotionEvent;
+class MotionEventGeneric;
// Allows event forwarding and flush requests from a |MotionEventBuffer|.
class MotionEventBufferClient {
@@ -52,8 +53,10 @@ class GESTURE_DETECTION_EXPORT MotionEventBuffer {
void Flush(base::TimeTicks frame_time);
private:
- typedef ScopedVector<MotionEvent> MotionEventVector;
+ typedef ScopedVector<MotionEventGeneric> MotionEventVector;
+ void FlushWithResampling(MotionEventVector events,
+ base::TimeTicks resample_time);
void FlushWithoutResampling(MotionEventVector events);
MotionEventBufferClient* const client_;
@@ -61,7 +64,7 @@ class GESTURE_DETECTION_EXPORT MotionEventBuffer {
// Time of the most recently extrapolated event. This will be 0 if the
// last sent event was not extrapolated. Used internally to guard against
- // conflicts between events received from the platfrom that may have an
+ // conflicts between events received from the platform that may have an
// earlier timestamp than that synthesized at the latest resample.
base::TimeTicks last_extrapolated_event_time_;
« no previous file with comments | « ui/events/gesture_detection/motion_event.cc ('k') | ui/events/gesture_detection/motion_event_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698