1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:47:46 +00:00

LibWeb: Begin implementing the Clipboard API

https://w3c.github.io/clipboard-apis/

This implements enough for navigator.clipboard.writeText(String).
This commit is contained in:
Timothy Flynn 2023-11-10 13:29:20 -05:00 committed by Andreas Kling
parent 78d455e231
commit 4b94b0b561
14 changed files with 303 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#import <Clipboard/Clipboard.idl>
#import <HTML/MimeTypeArray.idl>
#import <HTML/NavigatorBeacon.idl>
#import <HTML/NavigatorID.idl>
@ -10,6 +11,9 @@
[Exposed=Window]
interface Navigator {
// objects implementing this interface also implement the interfaces given below
// https://w3c.github.io/clipboard-apis/#navigator-interface
[SecureContext, SameObject] readonly attribute Clipboard clipboard;
};
// NOTE: As NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, and NavigatorAutomationInformation