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
commit 2258fc273c
Notes: sideshowbarker 2024-07-17 08:55:54 +09:00
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;
};