2023-03-05 16:01:53 +00:00
|
|
|
#import <DOM/EventHandler.idl>
|
2023-03-05 15:42:58 +00:00
|
|
|
#import <DOM/EventTarget.idl>
|
|
|
|
|
|
|
|
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#window
|
2023-03-05 16:02:35 +00:00
|
|
|
[Global=Window, Exposed=Window, LegacyUnenumerableNamedProperties, UseNewAKString]
|
2023-03-05 15:42:58 +00:00
|
|
|
interface Window : EventTarget {
|
2023-03-05 16:02:35 +00:00
|
|
|
// user prompts
|
|
|
|
undefined alert();
|
|
|
|
undefined alert(DOMString message);
|
2023-03-05 17:21:24 +00:00
|
|
|
boolean confirm(optional DOMString message = "");
|
2023-03-05 17:28:17 +00:00
|
|
|
DOMString? prompt(optional DOMString message = "", optional DOMString default = "");
|
2023-03-05 17:36:59 +00:00
|
|
|
|
|
|
|
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 = {});
|
2023-03-05 15:42:58 +00:00
|
|
|
};
|
2023-03-05 16:01:53 +00:00
|
|
|
Window includes GlobalEventHandlers;
|
|
|
|
Window includes WindowEventHandlers;
|