12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #import <Crypto/Crypto.idl>
- #import <CSS/MediaQueryList.idl>
- #import <DOM/Document.idl>
- #import <DOM/EventHandler.idl>
- #import <DOM/EventTarget.idl>
- #import <HighResolutionTime/Performance.idl>
- #import <HTML/Navigator.idl>
- #import <HTML/WindowOrWorkerGlobalScope.idl>
- // https://html.spec.whatwg.org/multipage/nav-history-apis.html#window
- [Global=Window, Exposed=Window, LegacyUnenumerableNamedProperties, UseNewAKString]
- interface Window : EventTarget {
- // the current browsing context
- [LegacyUnforgeable] readonly attribute WindowProxy window;
- [Replaceable] readonly attribute WindowProxy self;
- [LegacyUnforgeable] readonly attribute Document document;
- attribute DOMString name;
- [PutForwards=href, LegacyUnforgeable] readonly attribute Location location;
- readonly attribute History history;
- // other browsing contexts
- [Replaceable] readonly attribute WindowProxy frames;
- [Replaceable] readonly attribute unsigned long length;
- [LegacyUnforgeable] readonly attribute WindowProxy? top;
- [Replaceable] readonly attribute WindowProxy? parent;
- readonly attribute Element? frameElement;
- WindowProxy? open(optional USVString url = "", optional DOMString target = "_blank", optional [LegacyNullToEmptyString] DOMString features = "");
- // the user agent
- readonly attribute Navigator navigator;
- [ImplementedAs=navigator] readonly attribute Navigator clientInformation; // legacy alias of .navigator
- // user prompts
- undefined alert();
- undefined alert(DOMString message);
- boolean confirm(optional DOMString message = "");
- DOMString? prompt(optional DOMString message = "", optional DOMString default = "");
- undefined postMessage(any message, USVString targetOrigin);
- // FIXME: undefined postMessage(any message, USVString targetOrigin, optional sequence<object> transfer = []);
- // FIXME: undefined postMessage(any message, optional WindowPostMessageOptions options = {});
- // https://dom.spec.whatwg.org/#interface-window-extensions
- [Replaceable] readonly attribute (Event or undefined) event; // legacy
- // https://w3c.github.io/csswg-drafts/cssom-view/#extensions-to-the-window-interface
- [NewObject] MediaQueryList matchMedia(CSSOMString query);
- // FIXME: Everything from here on should be shared through WindowOrWorkerGlobalScope
- // https://w3c.github.io/hr-time/#the-performance-attribute
- [Replaceable] readonly attribute Performance performance;
- // https://w3c.github.io/webcrypto/#crypto-interface
- [SameObject] readonly attribute Crypto crypto;
- };
- Window includes GlobalEventHandlers;
- Window includes WindowEventHandlers;
- Window includes WindowOrWorkerGlobalScope;
|