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

Unified Diff: ui/views/widget/drop_helper.cc

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/drop_helper.cc
===================================================================
--- ui/views/widget/drop_helper.cc (revision 151481)
+++ ui/views/widget/drop_helper.cc (working copy)
@@ -63,8 +63,8 @@
gfx::Point view_location(root_view_location);
View* root_view = drop_view->GetWidget()->GetRootView();
View::ConvertPointToTarget(root_view, drop_view, &view_location);
- DropTargetEvent drop_event(data, view_location.x(), view_location.y(),
- drag_operation);
+ ui::DropTargetEvent drop_event(data, view_location, view_location,
+ drag_operation);
return drop_view->OnPerformDrop(drop_event);
}
@@ -126,10 +126,10 @@
gfx::Point target_view_location(root_view_location);
View::ConvertPointToTarget(root_view_, target_view_, &target_view_location);
- DropTargetEvent enter_event(data,
- target_view_location.x(),
- target_view_location.y(),
- drag_operation);
+ ui::DropTargetEvent enter_event(data,
+ target_view_location,
+ target_view_location,
+ drag_operation);
target_view_->OnDragEntered(enter_event);
}
@@ -141,10 +141,10 @@
gfx::Point target_view_location(root_view_location);
View::ConvertPointToTarget(root_view_, target_view_, &target_view_location);
- DropTargetEvent enter_event(data,
- target_view_location.x(),
- target_view_location.y(),
- drag_operation);
+ ui::DropTargetEvent enter_event(data,
+ target_view_location,
+ target_view_location,
+ drag_operation);
return target_view_->OnDragUpdated(enter_event);
}
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698