ladybird/Userland/Libraries/LibWeb/Clipboard/Clipboard.idl
2024-01-18 14:00:06 +01:00

13 lines
414 B
Plaintext

#import <DOM/EventTarget.idl>
// FIXME: typedef sequence<ClipboardItem> ClipboardItems;
// https://w3c.github.io/clipboard-apis/#clipboard
[SecureContext, Exposed=Window]
interface Clipboard : EventTarget {
// FIXME: Promise<ClipboardItems> read();
// FIXME: Promise<DOMString> readText();
// FIXME: Promise<undefined> write(ClipboardItems data);
Promise<undefined> writeText(DOMString data);
};