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

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

Issue 2784473003: Add constructor for DataTransfer (Closed)
Patch Set: Update webkit fast/dom constructor test Created 3 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/DataTransfer.cpp
diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
index a61d54953e6cc3551853263aa9a042668ca064ab..83c881bf8ef3b76c45f48d7e37ef29e5166cfa89 100644
--- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
+++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
@@ -109,6 +109,14 @@ static String normalizeType(const String& type, bool* convertToURL = 0) {
return cleanType;
}
+DataTransfer* DataTransfer::create() {
+ DataTransfer* data =
+ create(CopyAndPaste, DataTransferWritable, DataObject::create());
+ data->m_dropEffect = "none";
+ data->m_effectAllowed = "none";
+ return data;
+}
+
DataTransfer* DataTransfer::create(DataTransferType type,
DataTransferAccessPolicy policy,
DataObject* dataObject) {
« no previous file with comments | « third_party/WebKit/Source/core/clipboard/DataTransfer.h ('k') | third_party/WebKit/Source/core/clipboard/DataTransfer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698