chromium/third_party/blink/renderer/modules/picture_in_picture/document_picture_in_picture.idl

// Copyright 2018 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/picture-in-picture/#document-extensions
// https://wicg.github.io/picture-in-picture/#documentorshadowroot-extension
[
    ImplementedAs=DocumentVideoPictureInPicture
]
partial interface Document {
    [Measure] readonly attribute boolean pictureInPictureEnabled;

    [CallWith=ScriptState, RaisesException, Measure, NewObject] Promise<undefined> exitPictureInPicture();
};