blob: c7bc249dffceac3b3c8eebe332a0940a547dec31 [file] [log] [blame]
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Picture-in-Picture (https://wicg.github.io/picture-in-picture/)
partial interface HTMLVideoElement {
[NewObject] Promise<PictureInPictureWindow> requestPictureInPicture();
attribute EventHandler onenterpictureinpicture;
attribute EventHandler onleavepictureinpicture;
[CEReactions] attribute boolean disablePictureInPicture;
};
partial interface Document {
readonly attribute boolean pictureInPictureEnabled;
[NewObject] Promise<void> exitPictureInPicture();
};
partial interface DocumentOrShadowRoot {
readonly attribute Element? pictureInPictureElement;
};
interface PictureInPictureWindow : EventTarget {
readonly attribute long width;
readonly attribute long height;
attribute EventHandler onresize;
};
[
Constructor(DOMString type, EnterPictureInPictureEventInit eventInitDict),
Exposed=Window
]
interface EnterPictureInPictureEvent : Event {
[SameObject] readonly attribute PictureInPictureWindow pictureInPictureWindow;
};
dictionary EnterPictureInPictureEventInit : EventInit {
required PictureInPictureWindow pictureInPictureWindow;
};