blob: 1024f684599a7b2a18ebd79c98fa6bdf6282b1e1 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// 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
[
Exposed=Window
] interface ClipboardItem {
[RaisesException] constructor(record<DOMString, Blob> items,
optional ClipboardItemOptions options = {});
readonly attribute FrozenArray<DOMString> types;
[RuntimeEnabled=RawClipboard]
readonly attribute boolean raw;
[
CallWith=ScriptState
] Promise<Blob> getType(DOMString type);
};