mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Implement the Fetch method
This commit is contained in:
parent
a03a5e814a
commit
3216009731
213 changed files with 1208 additions and 1719 deletions
|
@ -0,0 +1,30 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#windoworworkerglobalscope
|
||||
|
||||
// typedef (DOMString or Function) TimerHandler;
|
||||
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface WindowOrWorkerGlobalScope {
|
||||
// [Replaceable] readonly attribute USVString origin;
|
||||
|
||||
// base64 utility methods
|
||||
// DOMString btoa(DOMString data);
|
||||
// DOMString atob(DOMString data);
|
||||
|
||||
// timers
|
||||
// long setTimeout(TimerHandler handler, optional long timeout = 0, any... arguments);
|
||||
// void clearTimeout(optional long handle = 0);
|
||||
// long setInterval(TimerHandler handler, optional long timeout = 0, any... arguments);
|
||||
// void clearInterval(optional long handle = 0);
|
||||
|
||||
// ImageBitmap
|
||||
// Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, optional ImageBitmapOptions options);
|
||||
// Promise<ImageBitmap> createImageBitmap(
|
||||
// ImageBitmapSource image, long sx, long sy, long sw, long sh, optional ImageBitmapOptions options);
|
||||
};
|
||||
|
||||
Window implements WindowOrWorkerGlobalScope;
|
||||
WorkerGlobalScope implements WindowOrWorkerGlobalScope;
|
Loading…
Add table
Add a link
Reference in a new issue