summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/interfaces/document-picture-in-picture.idl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/wpt/tests/interfaces/document-picture-in-picture.idl34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/wpt/tests/interfaces/document-picture-in-picture.idl b/test/wpt/tests/interfaces/document-picture-in-picture.idl
new file mode 100644
index 0000000..742f65e
--- /dev/null
+++ b/test/wpt/tests/interfaces/document-picture-in-picture.idl
@@ -0,0 +1,34 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content was automatically extracted by Reffy into webref
+// (https://github.com/w3c/webref)
+// Source: Document Picture-in-Picture Specification (https://wicg.github.io/document-picture-in-picture/)
+
+[Exposed=Window]
+partial interface Window {
+ [SameObject, SecureContext] readonly attribute DocumentPictureInPicture
+ documentPictureInPicture;
+};
+
+[Exposed=Window, SecureContext]
+interface DocumentPictureInPicture : EventTarget {
+ [NewObject] Promise<Window> requestWindow(
+ optional DocumentPictureInPictureOptions options = {});
+ readonly attribute Window window;
+ attribute EventHandler onenter;
+};
+
+dictionary DocumentPictureInPictureOptions {
+ [EnforceRange] unsigned long long width = 0;
+ [EnforceRange] unsigned long long height = 0;
+ boolean copyStyleSheets = false;
+};
+
+[Exposed=Window]
+interface DocumentPictureInPictureEvent : Event {
+ constructor(DOMString type, DocumentPictureInPictureEventInit eventInitDict);
+ [SameObject] readonly attribute Window window;
+};
+
+dictionary DocumentPictureInPictureEventInit : EventInit {
+ required Window window;
+};