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

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: rebase 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 c6513633a12aff40f44d173467509a522a30903c..14f5f2b848edd3ccc8c0f7cc53497e018f92628b 100644
--- a/third_party/WebKit/Source/core/clipboard/DataObject.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataObject.cpp
@@ -226,6 +226,7 @@ void DataObject::addSharedBuffer(const String& name, PassRefPtr<SharedBuffer> bu
DataObject::DataObject()
: m_modifiers(0)
+ , m_canReadContent(true)
{
}
@@ -298,6 +299,8 @@ DataObject* DataObject::create(WebDragData data)
if (!data.filesystemId().isNull())
DraggedIsolatedFileSystem::prepareForDataObject(dataObject, data.filesystemId());
+
+ dataObject->m_canReadContent = data.canReadContent();
return dataObject;
}
@@ -350,6 +353,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