mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 21:58:10 +00:00
LibWeb: Use unsigned long long for ProgressEventInit
The IDL generator now supports this :^)
This commit is contained in:
parent
92a628c07c
commit
3e756da564
2 changed files with 5 additions and 7 deletions
|
@ -8,16 +8,14 @@
|
||||||
|
|
||||||
#include <AK/FlyString.h>
|
#include <AK/FlyString.h>
|
||||||
#include <LibWeb/DOM/Event.h>
|
#include <LibWeb/DOM/Event.h>
|
||||||
|
#include <LibWeb/WebIDL/Types.h>
|
||||||
|
|
||||||
namespace Web::XHR {
|
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 {
|
struct ProgressEventInit : public DOM::EventInit {
|
||||||
bool length_computable { false };
|
bool length_computable { false };
|
||||||
u32 loaded { 0 };
|
WebIDL::UnsignedLongLong loaded { 0 };
|
||||||
u32 total { 0 };
|
WebIDL::UnsignedLongLong total { 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
class ProgressEvent final : public DOM::Event {
|
class ProgressEvent final : public DOM::Event {
|
||||||
|
|
|
@ -12,6 +12,6 @@ interface ProgressEvent : Event {
|
||||||
|
|
||||||
dictionary ProgressEventInit : EventInit {
|
dictionary ProgressEventInit : EventInit {
|
||||||
boolean lengthComputable = false;
|
boolean lengthComputable = false;
|
||||||
unsigned long loaded = 0;
|
unsigned long long loaded = 0;
|
||||||
unsigned long total = 0;
|
unsigned long long total = 0;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue