2024-08-23 19:41:56 +01:00
|
|
|
#import <EntriesAPI/FileSystemEntry.idl>
|
2024-08-15 12:18:56 -04:00
|
|
|
#import <FileAPI/File.idl>
|
|
|
|
|
|
|
|
callback FunctionStringCallback = undefined (DOMString data);
|
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/dnd.html#datatransferitem
|
|
|
|
[Exposed=Window]
|
|
|
|
interface DataTransferItem {
|
2024-08-21 10:24:45 -04:00
|
|
|
readonly attribute DOMString kind;
|
|
|
|
readonly attribute DOMString type;
|
2024-08-22 15:01:23 -04:00
|
|
|
undefined getAsString(FunctionStringCallback? _callback);
|
2024-08-22 14:25:14 -04:00
|
|
|
File? getAsFile();
|
2024-08-23 19:41:56 +01:00
|
|
|
|
|
|
|
// https://wicg.github.io/entries-api/#dom-datatransferitem-webkitgetasentry
|
|
|
|
FileSystemEntry? webkitGetAsEntry();
|
2024-08-15 12:18:56 -04:00
|
|
|
};
|