blob: baad45381c01aed0f8219796d9bf4a843301f8be [file] [log] [blame]
// Copyright 2022 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/mediacapture-region/#dom-croptarget
[Exposed=(Window,Worker), Serializable, RuntimeEnabled = RegionCapture]
interface CropTarget {
[
Exposed=Window,
CallWith = ScriptState,
RaisesException,
MeasureAs = RegionCapture,
RuntimeEnabled = RegionCapture
] static Promise<CropTarget> fromElement(Element element);
};