1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

LibWeb: Add the missing ProgressEvent IDL constructor

This commit is contained in:
Idan Horowitz 2021-10-01 18:55:24 +03:00 committed by Andreas Kling
parent 1e8ba0d9d3
commit 4d71f22673
4 changed files with 32 additions and 9 deletions

View file

@ -1,7 +1,15 @@
#import <DOM/Event.idl>
interface ProgressEvent : Event {
constructor(DOMString type, optional ProgressEventInit eventInitDict = {});
readonly attribute boolean lengthComputable;
readonly attribute unsigned long loaded;
readonly attribute unsigned long total;
};
dictionary ProgressEventInit : EventInit {
boolean lengthComputable = false;
unsigned long loaded = 0;
unsigned long total = 0;
};