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

Unified Diff: components/mus/example/wm/move_loop_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 | « components/html_viewer/input_events_unittest.cc ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/example/wm/move_loop_unittest.cc
diff --git a/components/mus/example/wm/move_loop_unittest.cc b/components/mus/example/wm/move_loop_unittest.cc
index d53b862c9c777f2bdea17a1d297d33c6469ea210..175e6cf800a6ff40beda0d895f5ad0265e26f163 100644
--- a/components/mus/example/wm/move_loop_unittest.cc
+++ b/components/mus/example/wm/move_loop_unittest.cc
@@ -29,13 +29,13 @@ void SetClientArea(mus::Window* window) {
}
mus::mojom::EventPtr CreatePointerDownEvent(const gfx::Point& location) {
- const ui::TouchEvent event(ui::ET_TOUCH_PRESSED, gfx::PointF(location), 1,
+ const ui::TouchEvent event(ui::ET_TOUCH_PRESSED, location, 1,
base::TimeDelta());
return mus::mojom::Event::From(static_cast<const ui::Event&>(event));
}
mus::mojom::EventPtr CreatePointerMove(const gfx::Point& location) {
- const ui::TouchEvent event(ui::ET_TOUCH_MOVED, gfx::PointF(location), 1,
+ const ui::TouchEvent event(ui::ET_TOUCH_MOVED, location, 1,
base::TimeDelta());
return mus::mojom::Event::From(static_cast<const ui::Event&>(event));
}
« no previous file with comments | « components/html_viewer/input_events_unittest.cc ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698