// 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://wicg.github.io/document-picture-in-picture/#documentpictureinpicture
[
Exposed=Window,
SecureContext,
RuntimeEnabled=DocumentPictureInPictureAPI
]
interface DocumentPictureInPicture : EventTarget {
[CallWith=ScriptState, Measure, RaisesException, NewObject] Promise<Window> requestWindow(optional DocumentPictureInPictureOptions options = {});
[CallWith=ScriptState, Measure] readonly attribute Window window;
attribute EventHandler onenter;
};