ladybird/Userland/Libraries/LibWeb/HTML/Window.idl

35 lines
1.4 KiB
Text
Raw Normal View History

#import <DOM/Document.idl>
#import <DOM/EventHandler.idl>
#import <DOM/EventTarget.idl>
#import <HTML/Navigator.idl>
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#window
[Global=Window, Exposed=Window, LegacyUnenumerableNamedProperties, UseNewAKString]
interface Window : EventTarget {
2023-03-05 18:36:43 +00:00
// the current browsing context
[LegacyUnforgeable] readonly attribute WindowProxy window;
2023-03-05 18:38:29 +00:00
[Replaceable] readonly attribute WindowProxy self;
[LegacyUnforgeable] readonly attribute Document document;
2023-03-05 19:02:16 +00:00
attribute DOMString name;
[PutForwards=href, LegacyUnforgeable] readonly attribute Location location;
2023-03-05 18:36:43 +00:00
2023-03-05 18:48:45 +00:00
// other browsing contexts
[Replaceable] readonly attribute WindowProxy frames;
// 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 = {});
};
Window includes GlobalEventHandlers;
Window includes WindowEventHandlers;