tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

document-picture-in-picture.idl (1189B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: Document Picture-in-Picture Specification (https://wicg.github.io/document-picture-in-picture/)
      5 
      6 [Exposed=Window]
      7 partial interface Window {
      8  [SameObject, SecureContext] readonly attribute DocumentPictureInPicture
      9    documentPictureInPicture;
     10 };
     11 
     12 [Exposed=Window, SecureContext]
     13 interface DocumentPictureInPicture : EventTarget {
     14  [NewObject] Promise<Window> requestWindow(
     15    optional DocumentPictureInPictureOptions options = {});
     16  readonly attribute Window window;
     17  attribute EventHandler onenter;
     18 };
     19 
     20 dictionary DocumentPictureInPictureOptions {
     21  [EnforceRange] unsigned long long width = 0;
     22  [EnforceRange] unsigned long long height = 0;
     23  boolean disallowReturnToOpener = false;
     24  boolean preferInitialWindowPlacement = false;
     25 };
     26 
     27 [Exposed=Window, SecureContext]
     28 interface DocumentPictureInPictureEvent : Event {
     29  constructor(DOMString type, DocumentPictureInPictureEventInit eventInitDict);
     30  [SameObject] readonly attribute Window window;
     31 };
     32 
     33 dictionary DocumentPictureInPictureEventInit : EventInit {
     34  required Window window;
     35 };