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

Unified Diff: ash/wm/workspace/workspace_event_handler_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: ash/wm/workspace/workspace_event_handler_unittest.cc
diff --git a/ash/wm/workspace/workspace_event_handler_unittest.cc b/ash/wm/workspace/workspace_event_handler_unittest.cc
index 5f1e48f1bc407d3d5ed2a3bab5e64ec7fd4ce6a9..d2999e628fe46c7622c9aaa6472fa50ddb2b810b 100644
--- a/ash/wm/workspace/workspace_event_handler_unittest.cc
+++ b/ash/wm/workspace/workspace_event_handler_unittest.cc
@@ -36,7 +36,7 @@ namespace {
void ClickButtonWithFlags(ui::test::EventGenerator* generator,
int button,
int flags) {
- gfx::Point location = generator->current_location();
+ auto location = gfx::PointF(generator->current_location());
ui::MouseEvent press(ui::ET_MOUSE_PRESSED, location, location,
ui::EventTimeForNow(), button | flags, button);
generator->Dispatch(&press);

Powered by Google App Engine
This is Rietveld 408576698