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:
parent
ca30914fe9
commit
2258fc273c
2 changed files with 5 additions and 2 deletions
|
@ -0,0 +1,2 @@
|
|||
// https://w3c.github.io/hr-time/#dom-domhighrestimestamp
|
||||
typedef double DOMHighResTimeStamp;
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue