mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
23 lines
715 B
Text
23 lines
715 B
Text
|
typedef Promise<(DOMString or Blob)> ClipboardItemData;
|
||
|
|
||
|
// https://w3c.github.io/clipboard-apis/#clipboard-item-interface
|
||
|
[SecureContext, Exposed=Window]
|
||
|
interface ClipboardItem {
|
||
|
constructor(record<DOMString, ClipboardItemData> items,
|
||
|
optional ClipboardItemOptions options = {});
|
||
|
|
||
|
readonly attribute PresentationStyle presentationStyle;
|
||
|
// FIXME: Should be a FrozenArray<DOMString>
|
||
|
readonly attribute sequence<DOMString> types;
|
||
|
|
||
|
Promise<Blob> getType(DOMString type);
|
||
|
|
||
|
static boolean supports(DOMString type);
|
||
|
};
|
||
|
|
||
|
enum PresentationStyle { "unspecified", "inline", "attachment" };
|
||
|
|
||
|
dictionary ClipboardItemOptions {
|
||
|
PresentationStyle presentationStyle = "unspecified";
|
||
|
};
|