mirror of
https://github.com/servo/servo.git
synced 2025-06-30 20:13:39 +01:00
28 lines
877 B
Text
28 lines
877 B
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content of this file was automatically extracted from the
|
|
// "Clipboard API and events" spec.
|
|
// See: https://w3c.github.io/clipboard-apis/
|
|
|
|
dictionary ClipboardEventInit : EventInit {
|
|
DataTransfer? clipboardData = null;
|
|
};
|
|
|
|
[Constructor(DOMString type, optional ClipboardEventInit eventInitDict), Exposed=Window]
|
|
interface ClipboardEvent : Event {
|
|
readonly attribute DataTransfer? clipboardData;
|
|
};
|
|
|
|
partial interface Navigator {
|
|
[SecureContext, SameObject] readonly attribute Clipboard clipboard;
|
|
};
|
|
|
|
[SecureContext, Exposed=Window] interface Clipboard : EventTarget {
|
|
Promise<DataTransfer> read();
|
|
Promise<DOMString> readText();
|
|
Promise<void> write(DataTransfer data);
|
|
Promise<void> writeText(DOMString data);
|
|
};
|
|
|
|
dictionary ClipboardPermissionDescriptor : PermissionDescriptor {
|
|
boolean allowWithoutGesture = false;
|
|
};
|