mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
22 lines
669 B
Plaintext
22 lines
669 B
Plaintext
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;
|
|
readonly attribute FrozenArray<DOMString> types;
|
|
|
|
Promise<Blob> getType(DOMString type);
|
|
|
|
static boolean supports(DOMString type);
|
|
};
|
|
|
|
enum PresentationStyle { "unspecified", "inline", "attachment" };
|
|
|
|
dictionary ClipboardItemOptions {
|
|
PresentationStyle presentationStyle = "unspecified";
|
|
};
|