| // 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; |
| }; |