blob: dce2d5b9d72eabf2628d355b252de3f3a171da82 [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/clipboard-apis/#clipboard-interface
typedef Promise<(DOMString or Blob)> ClipboardItemData;
[
SecureContext,
Exposed=Window
] interface ClipboardItem {
[RaisesException] constructor(record<DOMString, ClipboardItemData> items);
readonly attribute FrozenArray<DOMString> types;
[
CallWith=ScriptState,
RaisesException
] Promise<Blob> getType(DOMString type);
[Measure] static boolean supports(DOMString type);
};