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

Unified Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.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: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
diff --git a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
index 5a76cbf7a46d40f643ddfd092cd7e9c5a9155bc5..494bb2b3767dfe38cdb5538afa0d9f9f90e2f23d 100644
--- a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
+++ b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc
@@ -606,9 +606,8 @@ void DesktopDragDropClientAuraX11::OnXdndDrop(
ui::OSExchangeData data(new ui::OSExchangeDataProviderAuraX11(
xwindow_, target_current_context_->fetched_targets()));
- ui::DropTargetEvent event(data,
- target_window_location_,
- target_window_root_location_,
+ ui::DropTargetEvent event(data, gfx::PointF(target_window_location_),
+ gfx::PointF(target_window_root_location_),
target_current_context_->GetDragOperation());
if (target_current_context_->source_client()) {
event.set_flags(target_current_context_->source_client()
@@ -992,11 +991,8 @@ void DesktopDragDropClientAuraX11::DragTranslate(
drag_op |= ui::DragDropTypes::DRAG_COPY;
}
- event->reset(new ui::DropTargetEvent(
- *(data->get()),
- location,
- root_location,
- drag_op));
+ event->reset(new ui::DropTargetEvent(*(data->get()), gfx::PointF(location),
+ gfx::PointF(root_location), drag_op));
if (target_current_context_->source_client()) {
(*event)->set_flags(
target_current_context_->source_client()->current_modifier_state());

Powered by Google App Engine
This is Rietveld 408576698