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

Unified Diff: ui/events/event_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-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/event.cc ('k') | ui/events/gestures/gesture_provider_aura_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_unittest.cc
diff --git a/ui/events/event_unittest.cc b/ui/events/event_unittest.cc
index 0ebbce10df75c8068014a95206962ee9673866a8..1c03c7ba7c620df207627c72d95bca5d659288d1 100644
--- a/ui/events/event_unittest.cc
+++ b/ui/events/event_unittest.cc
@@ -642,8 +642,8 @@ TEST(EventTest, PointerEventDetailsTouch) {
}
TEST(EventTest, PointerEventDetailsMouse) {
- ui::MouseEvent mouse_event(ET_MOUSE_PRESSED, gfx::PointF(0, 0),
- gfx::PointF(0, 0), ui::EventTimeForNow(), 0, 0);
+ ui::MouseEvent mouse_event(ET_MOUSE_PRESSED, gfx::Point(0, 0),
+ gfx::Point(0, 0), ui::EventTimeForNow(), 0, 0);
EXPECT_EQ(EventPointerType::POINTER_TYPE_MOUSE,
mouse_event.pointer_details().pointer_type());
@@ -664,8 +664,8 @@ TEST(EventTest, PointerEventDetailsMouse) {
}
TEST(EventTest, PointerEventDetailsStylus) {
- ui::MouseEvent stylus_event(ET_MOUSE_PRESSED, gfx::PointF(0, 0),
- gfx::PointF(0, 0), ui::EventTimeForNow(), 0, 0);
+ ui::MouseEvent stylus_event(ET_MOUSE_PRESSED, gfx::Point(0, 0),
+ gfx::Point(0, 0), ui::EventTimeForNow(), 0, 0);
ui::PointerDetails pointer_details(EventPointerType::POINTER_TYPE_PEN,
/* radius_x */ 0.0f,
/* radius_y */ 0.0f,
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/gestures/gesture_provider_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698