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

LibWeb/HighResolutionTime: Add IDL typedef for DOMHighResTimeStamp

We already have this for C++ code in DOMHighResTimeStamp.h, but let's
also avoid using plain 'double' in IDL code.
This commit is contained in:
Linus Groh 2023-03-06 23:56:20 +00:00
parent ca30914fe9
commit 2258fc273c
2 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,2 @@
// https://w3c.github.io/hr-time/#dom-domhighrestimestamp
typedef double DOMHighResTimeStamp;

View file

@ -1,11 +1,12 @@
#import <DOM/EventTarget.idl>
#import <HighResolutionTime/DOMHighResTimeStamp.idl>
#import <NavigationTiming/PerformanceTiming.idl>
// https://w3c.github.io/hr-time/#sec-performance
[Exposed=(Window, Worker)]
interface Performance : EventTarget {
double now();
readonly attribute double timeOrigin;
DOMHighResTimeStamp now();
readonly attribute DOMHighResTimeStamp timeOrigin;
readonly attribute PerformanceTiming timing;
};