// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://screen-share.github.io/element-capture/#dom-restrictiontarget
[Exposed=(Window,Worker), Serializable, RuntimeEnabled = ElementCapture]
interface RestrictionTarget {
[
Exposed=Window,
CallWith = ScriptState,
RaisesException,
MeasureAs = ElementCapture,
RuntimeEnabled = ElementCapture
] static Promise<RestrictionTarget> fromElement(Element element);
};