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

Unified Diff: ui/aura/gestures/gesture_recognizer_unittest.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/aura/gestures/gesture_recognizer_unittest.cc
diff --git a/ui/aura/gestures/gesture_recognizer_unittest.cc b/ui/aura/gestures/gesture_recognizer_unittest.cc
index d1550485058123026dc75a77a9732bded48919c6..b900f3de96c445495950db091827261834792d8e 100644
--- a/ui/aura/gestures/gesture_recognizer_unittest.cc
+++ b/ui/aura/gestures/gesture_recognizer_unittest.cc
@@ -200,7 +200,7 @@ class GestureEventConsumeDelegate : public TestWindowDelegate {
flags_ = gesture->flags();
switch (gesture->type()) {
case ui::ET_GESTURE_TAP:
- tap_location_ = gesture->location();
+ tap_location_ = gfx::ToFlooredPoint(gesture->location());
tap_count_ = gesture->details().tap_count();
tap_ = true;
break;
@@ -215,11 +215,11 @@ class GestureEventConsumeDelegate : public TestWindowDelegate {
break;
case ui::ET_GESTURE_END:
end_ = true;
- gesture_end_location_ = gesture->location();
+ gesture_end_location_ = gfx::ToFlooredPoint(gesture->location());
break;
case ui::ET_GESTURE_SCROLL_BEGIN:
scroll_begin_ = true;
- scroll_begin_position_ = gesture->location();
+ scroll_begin_position_ = gfx::ToFlooredPoint(gesture->location());
scroll_x_hint_ = gesture->details().scroll_x_hint();
scroll_y_hint_ = gesture->details().scroll_y_hint();
break;

Powered by Google App Engine
This is Rietveld 408576698