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

Unified Diff: ui/views/view.cc

Issue 1964283002: MacViews: Implemented Drag & Drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 0e733ad6a898f01863c3eccbda30c5de2bc15237..79bebf986a32e2c7fbda1a95230fe7e8f1d500c1 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -2412,6 +2412,10 @@ bool View::DoDrag(const ui::LocatedEvent& event,
OSExchangeData data;
WriteDragData(press_pt, &data);
+#if defined(OS_MACOSX)
+ data.provider().SetNativeEvent(event.native_event());
tapted 2016/05/11 12:36:15 This looks funny, but might be justified. It would
spqchan 2016/05/23 21:26:21 I tried out the ideas you suggested but I think th
+#endif
+
// Message the RootView to do the drag and drop. That way if we're removed
// the RootView can detect it and avoid calling us back.
gfx::Point widget_location(event.location());

Powered by Google App Engine
This is Rietveld 408576698