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

Unified Diff: Source/core/clipboard/DataTransferItemList.idl

Issue 1036273002: Sync the DataTransfer* interfaces with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: link to getAsFile() bug Created 5 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
« no previous file with comments | « Source/core/clipboard/DataTransferItem.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/clipboard/DataTransferItemList.idl
diff --git a/Source/core/clipboard/DataTransferItemList.idl b/Source/core/clipboard/DataTransferItemList.idl
index 7bdf22c9cf8216ab1c16daefa4460b1af06ef5da..c350fa08984e300ed117959e5c3de096a802e676 100644
--- a/Source/core/clipboard/DataTransferItemList.idl
+++ b/Source/core/clipboard/DataTransferItemList.idl
@@ -28,17 +28,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#datatransferitemlist
+// https://html.spec.whatwg.org/#the-datatransferitemlist-interface
[
TypeChecking=Interface,
WillBeGarbageCollected,
] interface DataTransferItemList {
- readonly attribute long length;
+ readonly attribute unsigned long length;
[ImplementedAs=item] getter DataTransferItem (unsigned long index);
-
- [RaisesException] DataTransferItem add(DOMString data, DOMString type);
- DataTransferItem add(File? file);
+ [RaisesException] DataTransferItem? add(DOMString data, DOMString type);
+ // TODO(philipj): The file argument should not be nullable.
+ DataTransferItem? add(File? file);
[RaisesException, ImplementedAs=deleteItem] void remove(unsigned long index);
void clear();
};
« no previous file with comments | « Source/core/clipboard/DataTransferItem.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698