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

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

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-event: mandol_line Created 5 years, 1 month 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
« no previous file with comments | « ui/events/gestures/gesture_recognizer_impl.cc ('k') | ui/events/gestures/motion_event_aura_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/motion_event_aura.cc
diff --git a/ui/events/gestures/motion_event_aura.cc b/ui/events/gestures/motion_event_aura.cc
index 6890753641195f22a7e0f07be2e0ac6c9cd4bcd0..60f985431aa37e645df7433f5631c3f39aae62a4 100644
--- a/ui/events/gestures/motion_event_aura.cc
+++ b/ui/events/gestures/motion_event_aura.cc
@@ -54,8 +54,10 @@ bool MotionEventAura::OnTouch(const TouchEvent& touch) {
// crbug.com/446852 for details.
// Cancel the existing touch, before handling the touch press.
- TouchEvent cancel(ET_TOUCH_CANCELLED, touch.location_f(), touch.touch_id(),
+ TouchEvent cancel(ET_TOUCH_CANCELLED, gfx::Point(), touch.touch_id(),
touch.time_stamp());
+ cancel.set_location_f(touch.location_f());
+ cancel.set_root_location_f(touch.location_f());
OnTouch(cancel);
CleanupRemovedTouchPoints(cancel);
DCHECK_EQ(-1, FindPointerIndexOfId(touch.touch_id()));
« no previous file with comments | « ui/events/gestures/gesture_recognizer_impl.cc ('k') | ui/events/gestures/motion_event_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698