2024-08-17 14:44:26 -04:00
|
|
|
#import <FileAPI/FileList.idl>
|
2024-08-20 18:44:22 -04:00
|
|
|
#import <HTML/DataTransferItemList.idl>
|
2024-08-17 14:44:26 -04:00
|
|
|
|
2024-03-13 15:35:39 -04:00
|
|
|
// https://html.spec.whatwg.org/multipage/dnd.html#datatransfer
|
|
|
|
[Exposed=Window]
|
|
|
|
interface DataTransfer {
|
|
|
|
constructor();
|
|
|
|
|
2024-08-16 13:40:56 -04:00
|
|
|
attribute DOMString dropEffect;
|
|
|
|
attribute DOMString effectAllowed;
|
2024-03-13 15:35:39 -04:00
|
|
|
|
2024-08-20 18:44:22 -04:00
|
|
|
[SameObject] readonly attribute DataTransferItemList items;
|
2024-03-13 15:35:39 -04:00
|
|
|
|
2024-05-19 22:15:54 +12:00
|
|
|
[FIXME] undefined setDragImage(Element image, long x, long y);
|
2024-03-13 15:35:39 -04:00
|
|
|
|
|
|
|
// old interface
|
2024-08-17 14:23:13 -04:00
|
|
|
readonly attribute sequence<DOMString> types; // FIXME: This should be FrozenArray<DOMString>
|
2024-08-20 18:29:00 -04:00
|
|
|
DOMString getData(DOMString format);
|
2024-05-19 22:15:54 +12:00
|
|
|
[FIXME] undefined setData(DOMString format, DOMString data);
|
|
|
|
[FIXME] undefined clearData(optional DOMString format);
|
2024-08-17 14:44:26 -04:00
|
|
|
[SameObject] readonly attribute FileList files;
|
2024-03-13 15:35:39 -04:00
|
|
|
};
|