mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 03:39:04 +00:00
LibWeb: Implement navigator.clipboard.read
This commit is contained in:
parent
a4e9a27343
commit
912009f6b3
Notes:
github-actions[bot]
2025-05-02 21:47:14 +00:00
Author: https://github.com/trflynn89
Commit: 912009f6b3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4548
Reviewed-by: https://github.com/shannonbooth
5 changed files with 163 additions and 1 deletions
|
@ -6,8 +6,12 @@ typedef sequence<ClipboardItem> ClipboardItems;
|
|||
// https://w3c.github.io/clipboard-apis/#clipboard
|
||||
[SecureContext, Exposed=Window]
|
||||
interface Clipboard : EventTarget {
|
||||
[FIXME] Promise<ClipboardItems> read();
|
||||
Promise<ClipboardItems> read(optional ClipboardUnsanitizedFormats formats = {});
|
||||
Promise<DOMString> readText();
|
||||
Promise<undefined> write(ClipboardItems data);
|
||||
Promise<undefined> writeText(DOMString data);
|
||||
};
|
||||
|
||||
dictionary ClipboardUnsanitizedFormats {
|
||||
sequence<DOMString> unsanitized;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue