blob: 75278162d47d558203d29909e65109abec360cb3 [file] [log] [blame]
// Copyright 2021 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://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/EyeDropper/explainer.md
[Exposed=Window, RuntimeEnabled=EyeDropperAPI]
interface EyeDropper : EventTarget {
[CallWith=ScriptState] constructor();
Promise<void> open();
void close();
readonly attribute boolean opened;
// Event handler attributes
attribute EventHandler oncolorselect;
attribute EventHandler onclose;
};