mirror of
https://github.com/servo/servo.git
synced 2025-07-13 10:23:40 +01:00
43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
// 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 autoPictureInPicture;
|
|
[CEReactions] attribute boolean disablePictureInPicture;
|
|
};
|
|
|
|
partial interface Document {
|
|
readonly attribute boolean pictureInPictureEnabled;
|
|
|
|
[NewObject] Promise<void> exitPictureInPicture();
|
|
};
|
|
|
|
partial interface mixin 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;
|
|
};
|