Index: ui/events/gesture_detection/touch_disposition_gesture_filter.cc |
diff --git a/ui/events/gesture_detection/touch_disposition_gesture_filter.cc b/ui/events/gesture_detection/touch_disposition_gesture_filter.cc |
index 6668f0d753bc3f59aa1ea4c0207fd57730e9e680..06f25b4ee1b0aa53fb729b9ed0e059f99605ea90 100644 |
--- a/ui/events/gesture_detection/touch_disposition_gesture_filter.cc |
+++ b/ui/events/gesture_detection/touch_disposition_gesture_filter.cc |
@@ -191,7 +191,8 @@ TouchDispositionGestureFilter::OnGesturePacket( |
} |
void TouchDispositionGestureFilter::OnTouchEventAck( |
- uint32_t unique_touch_event_id, bool event_consumed) { |
+ uint32_t unique_touch_event_id, |
+ EventResult result) { |
// Spurious asynchronous acks should not trigger a crash. |
if (IsEmpty() || (Head().empty() && sequences_.size() == 1)) |
return; |
@@ -201,13 +202,13 @@ void TouchDispositionGestureFilter::OnTouchEventAck( |
if (!Tail().empty() && |
Tail().back().unique_touch_event_id() == unique_touch_event_id) { |
- Tail().back().Ack(event_consumed); |
+ Tail().back().Ack(result); |
if (sequences_.size() == 1 && Tail().size() == 1) |
SendAckedEvents(); |
} else { |
DCHECK(!Head().empty()); |
DCHECK_EQ(Head().front().unique_touch_event_id(), unique_touch_event_id); |
- Head().front().Ack(event_consumed); |
+ Head().front().Ack(result); |
SendAckedEvents(); |
} |
} |