mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +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 <DOM/EventTarget.idl>
|
||||||
|
#import <HighResolutionTime/DOMHighResTimeStamp.idl>
|
||||||
#import <NavigationTiming/PerformanceTiming.idl>
|
#import <NavigationTiming/PerformanceTiming.idl>
|
||||||
|
|
||||||
// https://w3c.github.io/hr-time/#sec-performance
|
// https://w3c.github.io/hr-time/#sec-performance
|
||||||
[Exposed=(Window, Worker)]
|
[Exposed=(Window, Worker)]
|
||||||
interface Performance : EventTarget {
|
interface Performance : EventTarget {
|
||||||
double now();
|
DOMHighResTimeStamp now();
|
||||||
readonly attribute double timeOrigin;
|
readonly attribute DOMHighResTimeStamp timeOrigin;
|
||||||
|
|
||||||
readonly attribute PerformanceTiming timing;
|
readonly attribute PerformanceTiming timing;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue