Replace DATA_TRANSFER_ITEMS by a runtime flag and add a stub implementation
[WebKit.git] / Source / WebCore / dom / DataTransfer.cpp
index 083d396..3deabb1 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "CachedImage.h"
 #include "CachedImageClient.h"
+#include "DataTransferItemList.h"
 #include "DragData.h"
 #include "Editor.h"
 #include "FileList.h"
@@ -145,6 +146,13 @@ void DataTransfer::setData(const String& type, const String& data)
     m_pasteboard->writeString(type, data);
 }
 
+DataTransferItemList& DataTransfer::items()
+{
+    if (!m_itemList)
+        m_itemList = std::make_unique<DataTransferItemList>(*this);
+    return *m_itemList;
+}
+
 Vector<String> DataTransfer::types() const
 {
     if (!canReadTypes())