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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 1723763002: Add WebDragData to blink::WebView::dragtargetDrop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change the existing API instead Created 4 years, 10 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: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index e13a9b7ff8f68e9486022892111f0d01acceb76a..6f3c38e69b4106a07ff8d5bec8f8ca0e2604c243 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -3636,11 +3636,14 @@ void WebViewImpl::dragTargetDragLeave()
m_currentDragData = nullptr;
}
-void WebViewImpl::dragTargetDrop(const WebPoint& clientPoint,
- const WebPoint& screenPoint,
- int modifiers)
+void WebViewImpl::dragTargetDrop(const WebDragData& webDragData, const WebPoint& clientPoint,
+ const WebPoint& screenPoint,
+ int modifiers)
{
ASSERT(m_currentDragData);
+ if (!webDragData.isNull()) {
aelias_OOO_until_Jul13 2016/03/02 00:03:19 nit: no braces for one-line clauses in Blink style
hush (inactive) 2016/03/02 02:35:11 Done.
+ m_currentDragData = DataObject::create(webDragData);
+ }
WebAutofillClient* autofillClient = mainFrameImpl() ? mainFrameImpl()->autofillClient() : 0;
UserGestureNotifier notifier(autofillClient, &m_userGestureObserved);

Powered by Google App Engine
This is Rietveld 408576698