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

Unified Diff: third_party/WebKit/Source/core/clipboard/DataObject.cpp

Issue 1723763002: Add WebDragData to blink::WebView::dragtargetDrop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Send "meta data" of dropData in DragEnter Created 4 years, 9 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/core/clipboard/DataObject.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataObject.cpp b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
index 88f2e9a181d44b768a0c693e846cda61c9e8e623..a60fa8b245c75106dfe3b992d61aae6e18059ed7 100644
--- a/third_party/WebKit/Source/core/clipboard/DataObject.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
@@ -217,6 +217,7 @@ void DataObject::addSharedBuffer(const String& name, PassRefPtr<SharedBuffer> bu
DataObject::DataObject()
: m_modifiers(0)
+ , m_canReadContent(true)
{
}
@@ -289,6 +290,8 @@ DataObject* DataObject::create(WebDragData data)
if (!data.filesystemId().isNull())
DraggedIsolatedFileSystem::prepareForDataObject(dataObject, data.filesystemId());
+
+ dataObject->m_canReadContent = data.canReadContent();
return dataObject;
}
@@ -341,6 +344,7 @@ WebDragData DataObject::toWebDragData()
itemList[i] = item;
}
data.swapItems(itemList);
+ data.setCanReadContent(m_canReadContent);
return data;
}

Powered by Google App Engine
This is Rietveld 408576698