serenity/Userland/Libraries/LibWeb/Clipboard/ClipboardEvent.idl
Timothy Flynn 7e3ead83b0 LibWeb: Implement the ClipboardEvent IDL interface
We don't actually generate any such events ourselves. But Google Lens
will create one with the DataTransfer attribute set to that of any drop
event we send it.

(cherry picked from commit 0b0d44da275067458e61a5dd80c4563f6aa7fdc6)
2024-11-01 22:04:14 -04:00

13 lines
389 B
Text

#import <DOM/Event.idl>
#import <HTML/DataTransfer.idl>
dictionary ClipboardEventInit : EventInit {
DataTransfer? clipboardData = null;
};
// https://w3c.github.io/clipboard-apis/#clipboardevent
[Exposed=Window]
interface ClipboardEvent : Event {
constructor(DOMString type, optional ClipboardEventInit eventInitDict = {});
readonly attribute DataTransfer? clipboardData;
};