| 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_;
|
|
|
|
|