2021-10-01 18:55:24 +03:00
|
|
|
#import <DOM/Event.idl>
|
|
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://xhr.spec.whatwg.org/#interface-progressevent
|
2023-09-03 02:00:01 +12:00
|
|
|
[Exposed=(Window,Worker)]
|
2021-01-23 17:50:22 +00:00
|
|
|
interface ProgressEvent : Event {
|
2021-10-01 18:55:24 +03:00
|
|
|
constructor(DOMString type, optional ProgressEventInit eventInitDict = {});
|
2021-01-23 17:50:22 +00:00
|
|
|
|
|
|
|
|
readonly attribute boolean lengthComputable;
|
2022-05-10 11:08:02 +02:00
|
|
|
readonly attribute unsigned long long loaded;
|
|
|
|
|
readonly attribute unsigned long long total;
|
2021-10-01 18:55:24 +03:00
|
|
|
};
|
2021-01-23 17:50:22 +00:00
|
|
|
|
2021-10-01 18:55:24 +03:00
|
|
|
dictionary ProgressEventInit : EventInit {
|
|
|
|
|
boolean lengthComputable = false;
|
2024-02-06 17:03:43 +13:00
|
|
|
unsigned long long loaded = 0;
|
|
|
|
|
unsigned long long total = 0;
|
2021-01-23 17:50:22 +00:00
|
|
|
};
|