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;
|
2025-04-17 11:37:30 +05:30
|
|
|
readonly attribute double loaded;
|
|
|
|
|
readonly attribute double 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;
|
2025-04-17 11:37:30 +05:30
|
|
|
double loaded = 0;
|
|
|
|
|
double total = 0;
|
2021-01-23 17:50:22 +00:00
|
|
|
};
|