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

Unified Diff: ui/events/gestures/gesture_provider_aura.cc

Issue 999423003: Set the unique_event_id when converting from TouchEvent to WebTouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Motion events Created 5 years, 9 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/gestures/gesture_provider_aura.cc
diff --git a/ui/events/gestures/gesture_provider_aura.cc b/ui/events/gestures/gesture_provider_aura.cc
index f053f9b14ace92285009eb03c7d8d5226ff03f6a..58f1ca054469e34faf7e93fb22d2294a12993e09 100644
--- a/ui/events/gestures/gesture_provider_aura.cc
+++ b/ui/events/gestures/gesture_provider_aura.cc
@@ -30,7 +30,7 @@ bool GestureProviderAura::OnTouchEvent(TouchEvent* event) {
if (!pointer_state_.OnTouch(*event))
return false;
- last_unique_touch_event_id_ = event->unique_event_id();
+ last_unique_touch_event_id_ = event->unique_touch_event_id();
last_touch_event_latency_info_ = *event->latency();
auto result = filtered_gesture_provider_.OnTouchEvent(pointer_state_);
@@ -50,9 +50,9 @@ void GestureProviderAura::OnAsyncTouchEventAck(bool event_consumed) {
last_touch_event_latency_info_.Clear();
}
-void GestureProviderAura::OnSyncTouchEventAck(const uint64 unique_event_id,
- bool event_consumed) {
- DCHECK_EQ(last_unique_touch_event_id_, unique_event_id);
+void GestureProviderAura::OnSyncTouchEventAck(
+ const uint64 unique_touch_event_id, bool event_consumed) {
+ DCHECK_EQ(last_unique_touch_event_id_, unique_touch_event_id);
DCHECK(pending_gestures_.empty());
DCHECK(!handling_event_);
base::AutoReset<bool> handling_event(&handling_event_, true);

Powered by Google App Engine
This is Rietveld 408576698