blob: 18f4a01a72c350ab73073c1aba5d6bd50f225bcf [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// 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 {
[RuntimeEnabled=PictureInPictureAPI, CallWith=ScriptState, Measure, NewObject] Promise<PictureInPictureWindow> requestPictureInPicture();
[RuntimeEnabled=PictureInPictureControl] void setPictureInPictureControls(sequence<PictureInPictureControl> pipControls);
[RuntimeEnabled=PictureInPictureAPI] attribute EventHandler onenterpictureinpicture;
[RuntimeEnabled=PictureInPictureAPI] attribute EventHandler onleavepictureinpicture;
[RuntimeEnabled=PictureInPictureControl] attribute EventHandler onpictureinpicturecontrolclick;
[OriginTrialEnabled=AutoPictureInPicture, CEReactions, Measure, Reflect] attribute boolean autoPictureInPicture;
[RuntimeEnabled=PictureInPictureAPI, CEReactions, Measure, Reflect] attribute boolean disablePictureInPicture;
};