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

Unified Diff: Source/core/dom/DataTransferItemList.h

Issue 22837006: Have DataTransferItemList.add() methods return the added item (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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: Source/core/dom/DataTransferItemList.h
diff --git a/Source/core/dom/DataTransferItemList.h b/Source/core/dom/DataTransferItemList.h
index 91fd9679e1d852e412ee0afa34c6dee550d346ce..90d847f886aeb194974efc6a37512d5425970620 100644
--- a/Source/core/dom/DataTransferItemList.h
+++ b/Source/core/dom/DataTransferItemList.h
@@ -56,8 +56,8 @@ public:
virtual PassRefPtr<DataTransferItem> item(unsigned long index) = 0;
virtual void deleteItem(unsigned long index, ExceptionState&) = 0;
virtual void clear() = 0;
- virtual void add(const String& data, const String& type, ExceptionState&) = 0;
- virtual void add(PassRefPtr<File>) = 0;
+ virtual PassRefPtr<DataTransferItem> add(const String& data, const String& type, ExceptionState&) = 0;
+ virtual PassRefPtr<DataTransferItem> add(PassRefPtr<File>) = 0;
};
} // namespace WebCore
« no previous file with comments | « LayoutTests/fast/events/drag-dataTransferItemList-file-handling-expected.txt ('k') | Source/core/dom/DataTransferItemList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698