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

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

Issue 1260453006: ui: events: Add a class to hold common touch and stylus properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address build problems, add accessor and unit tests. Created 5 years, 4 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_recognizer_impl.cc
diff --git a/ui/events/gestures/gesture_recognizer_impl.cc b/ui/events/gestures/gesture_recognizer_impl.cc
index fe3de2c67a37e29e4c2e8a4eab530b4140dc17ba..01ff58cd49165c4a4fdb809f69374a90e9148286 100644
--- a/ui/events/gestures/gesture_recognizer_impl.cc
+++ b/ui/events/gestures/gesture_recognizer_impl.cc
@@ -174,15 +174,10 @@ bool GestureRecognizerImpl::CancelActiveTouches(GestureConsumer* consumer) {
for (size_t i = 0; i < pointer_state_clone->GetPointerCount(); ++i) {
gfx::PointF point(pointer_state_clone->GetX(i),
pointer_state_clone->GetY(i));
- TouchEvent touch_event(ui::ET_TOUCH_CANCELLED,
- point,
- ui::EF_IS_SYNTHESIZED,
- pointer_state_clone->GetPointerId(i),
- ui::EventTimeForNow(),
- 0.0f,
- 0.0f,
- 0.0f,
- 0.0f);
+ TouchEvent touch_event(
+ ui::ET_TOUCH_CANCELLED, point, ui::EF_IS_SYNTHESIZED,
+ pointer_state_clone->GetPointerId(i), ui::EventTimeForNow(), 0.0f,
+ PointerEventDetails(EventPointerType::POINTER_TYPE_TOUCH));
GestureEventHelper* helper = FindDispatchHelperForConsumer(consumer);
if (helper)
helper->DispatchCancelTouchEvent(&touch_event);

Powered by Google App Engine
This is Rietveld 408576698