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

Unified Diff: ui/events/gestures/motion_event_aura_unittest.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-gfx: . Created 5 years, 3 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/motion_event_aura_unittest.cc
diff --git a/ui/events/gestures/motion_event_aura_unittest.cc b/ui/events/gestures/motion_event_aura_unittest.cc
index 6cd5a2767d3a9081690c9626fc1ca453ec88e7c8..019ede4dc443eb88efbe5d41e8fb6cc1a97a9766 100644
--- a/ui/events/gestures/motion_event_aura_unittest.cc
+++ b/ui/events/gestures/motion_event_aura_unittest.cc
@@ -302,7 +302,7 @@ TEST(MotionEventAuraTest, TapParams) {
pressure = 0.654f;
TouchEvent move1 = TouchWithTapParams(
ET_TOUCH_MOVED, ids[1], radius_x, radius_y, rotation_angle, pressure);
- move1.set_location(gfx::Point(20, 21));
+ move1.set_location(gfx::PointF(20.f, 21.f));
EXPECT_TRUE(event.OnTouch(move1));
EXPECT_EQ(2U, event.GetPointerCount());

Powered by Google App Engine
This is Rietveld 408576698