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

Unified Diff: ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc

Issue 2869823003: [VSync Queue] Plug touch ack to gesture events and flush vsync queue if necessary (Closed)
Patch Set: dtapuska's comment: Use ack to determine blocking vs. non-blocking Created 3 years, 7 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/touch_disposition_gesture_filter_unittest.cc
diff --git a/ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc b/ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc
index e84049ce63631ec5bf3a760cbde90d6ea207d693..a39627ef73b9c16174445b37693b6fa745fa384a 100644
--- a/ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc
+++ b/ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc
@@ -140,24 +140,24 @@ class TouchDispositionGestureFilterTest
return queue_->OnGesturePacket(packet);
}
- void SendTouchEventAck(uint32_t touch_event_id, bool event_consumed) {
- queue_->OnTouchEventAck(touch_event_id, event_consumed);
+ void SendTouchEventAck(uint32_t touch_event_id, EventResult result) {
+ queue_->OnTouchEventAck(touch_event_id, result);
}
void SendTouchConsumedAck(uint32_t touch_event_id) {
- SendTouchEventAck(touch_event_id, true);
+ SendTouchEventAck(touch_event_id, ER_CONSUMED);
}
void SendTouchNotConsumedAck(uint32_t touch_event_id) {
- SendTouchEventAck(touch_event_id, false);
+ SendTouchEventAck(touch_event_id, ER_UNHANDLED);
}
void SendTouchConsumedAckForLastTouch() {
- SendTouchEventAck(last_sent_touch_event_id_, true);
+ SendTouchEventAck(last_sent_touch_event_id_, ER_CONSUMED);
}
void SendTouchNotConsumedAckForLastTouch() {
- SendTouchEventAck(last_sent_touch_event_id_, false);
+ SendTouchEventAck(last_sent_touch_event_id_, ER_UNHANDLED);
}
void PushGesture(EventType type) {

Powered by Google App Engine
This is Rietveld 408576698