1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +00:00

LibWeb: Use unsigned long long for ProgressEventInit

The IDL generator now supports this :^)
This commit is contained in:
Shannon Booth 2024-02-06 17:03:43 +13:00 committed by Andreas Kling
parent 92a628c07c
commit 3e756da564
2 changed files with 5 additions and 7 deletions

View file

@ -8,16 +8,14 @@
#include <AK/FlyString.h>
#include <LibWeb/DOM/Event.h>
#include <LibWeb/WebIDL/Types.h>
namespace Web::XHR {
// FIXME: All the "u32"s should be "u64"s, however LibJS doesn't currently support constructing values with u64,
// and the IDL parser doesn't properly parse "unsigned long long".
struct ProgressEventInit : public DOM::EventInit {
bool length_computable { false };
u32 loaded { 0 };
u32 total { 0 };
WebIDL::UnsignedLongLong loaded { 0 };
WebIDL::UnsignedLongLong total { 0 };
};
class ProgressEvent final : public DOM::Event {

View file

@ -12,6 +12,6 @@ interface ProgressEvent : Event {
dictionary ProgressEventInit : EventInit {
boolean lengthComputable = false;
unsigned long loaded = 0;
unsigned long total = 0;
unsigned long long loaded = 0;
unsigned long long total = 0;
};