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

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

Issue 139983009: ui::LocatedEvent location() returns gfx::PointF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental change. Created 6 years, 8 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_sequence.cc
diff --git a/ui/events/gestures/gesture_sequence.cc b/ui/events/gestures/gesture_sequence.cc
index 0872bdff3a086ecfcbfe820bdcf715409985c144..cfafae26ae869cf32af233612d0a4fe0761261bc 100644
--- a/ui/events/gestures/gesture_sequence.cc
+++ b/ui/events/gestures/gesture_sequence.cc
@@ -497,7 +497,7 @@ GestureSequence::Gestures* GestureSequence::ProcessTouchEventForGesture(
const TouchEvent& event,
EventResult result) {
StopTimersIfRequired(event);
- last_touch_location_ = event.location();
+ last_touch_location_ = gfx::ToFlooredPoint(event.location());
if (result & ER_CONSUMED)
return NULL;

Powered by Google App Engine
This is Rietveld 408576698