зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1536245 [wpt PR 15860] - Update interfaces/clipboard-apis.idl, a=testonly
Automatic update from web-platform-tests Update interfaces/clipboard-apis.idl (#15860) Source: https://github.com/tidoust/reffy-reports/blob/e0218fe/whatwg/idl/clipboard-apis.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/506822321 -- wpt-commits: a551ea90bb389818061a52c959268ddfb3673b36 wpt-pr: 15860
This commit is contained in:
Родитель
ed820d3c75
Коммит
e608f92e95
|
@ -16,13 +16,42 @@ partial interface Navigator {
|
|||
[SecureContext, SameObject] readonly attribute Clipboard clipboard;
|
||||
};
|
||||
|
||||
typedef sequence<ClipboardItem> ClipboardItems;
|
||||
|
||||
[SecureContext, Exposed=Window] interface Clipboard : EventTarget {
|
||||
Promise<DataTransfer> read();
|
||||
Promise<ClipboardItems> read();
|
||||
Promise<DOMString> readText();
|
||||
Promise<void> write(DataTransfer data);
|
||||
Promise<void> write(ClipboardItems data);
|
||||
Promise<void> writeText(DOMString data);
|
||||
};
|
||||
|
||||
typedef (DOMString or Blob) ClipboardItemDataType;
|
||||
typedef Promise<ClipboardItemDataType> ClipboardItemData;
|
||||
|
||||
callback ClipboardItemDelayedCallback = ClipboardItemData ();
|
||||
|
||||
[Constructor(record<DOMString, ClipboardItemData> items,
|
||||
optional ClipboardItemOptions options),
|
||||
Exposed=Window] interface ClipboardItem {
|
||||
static ClipboardItem createDelayed(
|
||||
record<DOMString, ClipboardItemDelayedCallback> items,
|
||||
optional ClipboardItemOptions options);
|
||||
|
||||
readonly attribute PresentationStyle presentationStyle;
|
||||
readonly attribute long long lastModified;
|
||||
readonly attribute boolean delayed;
|
||||
|
||||
readonly attribute FrozenArray<DOMString> types;
|
||||
|
||||
Promise<Blob> getType(DOMString type);
|
||||
};
|
||||
|
||||
enum PresentationStyle { "unspecified", "inline", "attachment" };
|
||||
|
||||
dictionary ClipboardItemOptions {
|
||||
PresentationStyle presentationStyle = "unspecified";
|
||||
};
|
||||
|
||||
dictionary ClipboardPermissionDescriptor : PermissionDescriptor {
|
||||
boolean allowWithoutGesture = false;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче