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

Unified Diff: ash/drag_drop/drag_drop_tracker.cc

Issue 1421713002: Explicitly convert Point to PointF for event code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wip
Patch Set: pointfconvert-prod: . Created 5 years, 2 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/drag_drop/drag_drop_tracker.cc
diff --git a/ash/drag_drop/drag_drop_tracker.cc b/ash/drag_drop/drag_drop_tracker.cc
index e0f81362ba1f226c3be0491d03c47db4e294e694..3f97cda5133385bf70b31bae3d54aad97a3a5afb 100644
--- a/ash/drag_drop/drag_drop_tracker.cc
+++ b/ash/drag_drop/drag_drop_tracker.cc
@@ -93,8 +93,8 @@ ui::LocatedEvent* DragDropTracker::ConvertEvent(
ash::wm::GetRootWindowAt(location_in_screen),
&target_root_location);
return new ui::MouseEvent(
- event.type(), target_location, target_root_location,
- ui::EventTimeForNow(), event.flags(),
+ event.type(), gfx::PointF(target_location),
+ gfx::PointF(target_root_location), ui::EventTimeForNow(), event.flags(),
static_cast<const ui::MouseEvent&>(event).changed_button_flags());
}

Powered by Google App Engine
This is Rietveld 408576698