blob: 82e66c92bf819f95032372eca180d1e0cd46f7cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope
interface mixin WindowOrWorkerGlobalScope {
[Replaceable] readonly attribute USVString origin;
readonly attribute boolean isSecureContext;
readonly attribute boolean crossOriginIsolated;
// FIXME: undefined reportError(any e);
// base64 utility methods
DOMString btoa(DOMString data);
ByteString atob(DOMString data);
// timers
// FIXME: long setTimeout(TimerHandler handler, optional long timeout = 0, any... arguments);
// FIXME: undefined clearTimeout(optional long id = 0);
// FIXME: long setInterval(TimerHandler handler, optional long timeout = 0, any... arguments);
// FIXME: undefined clearInterval(optional long id = 0);
// microtask queuing
// FIXME: undefined queueMicrotask(VoidFunction callback);
// ImageBitmap
// FIXME: Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, optional ImageBitmapOptions options = {});
// FIXME: Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, long sx, long sy, long sw, long sh, optional ImageBitmapOptions options = {});
// structured cloning
// FIXME: any structuredClone(any value, optional StructuredSerializeOptions options = {});
};
|