chromium/third_party/blink/renderer/modules/picture_in_picture/html_video_element_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/#htmlvideoelement-extensions
[
    ImplementedAs=HTMLVideoElementPictureInPicture
]
partial interface HTMLVideoElement {
    [CallWith=ScriptState, Measure, NewObject, RaisesException] Promise<PictureInPictureWindow> requestPictureInPicture();

    attribute EventHandler onenterpictureinpicture;
    attribute EventHandler onleavepictureinpicture;

    [CEReactions, Measure, Reflect] attribute boolean disablePictureInPicture;
};