diff options
author | Linus Groh <mail@linusgroh.de> | 2023-03-06 23:56:20 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-06 23:57:25 +0000 |
commit | 2258fc273c9eb0db404a8020b8621fab31d1f7f7 (patch) | |
tree | e54e4fe06995816cc768e36b0960d7c5598b0892 /Userland/Libraries/LibWeb/HighResolutionTime | |
parent | ca30914fe9476b675926b0023b464ecaa800fb3b (diff) | |
download | serenity-2258fc273c9eb0db404a8020b8621fab31d1f7f7.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibWeb/HighResolutionTime')
-rw-r--r-- | Userland/Libraries/LibWeb/HighResolutionTime/DOMHighResTimeStamp.idl | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/HighResolutionTime/Performance.idl | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HighResolutionTime/DOMHighResTimeStamp.idl b/Userland/Libraries/LibWeb/HighResolutionTime/DOMHighResTimeStamp.idl new file mode 100644 index 0000000000..7b4c735867 --- /dev/null +++ b/Userland/Libraries/LibWeb/HighResolutionTime/DOMHighResTimeStamp.idl @@ -0,0 +1,2 @@ +// https://w3c.github.io/hr-time/#dom-domhighrestimestamp +typedef double DOMHighResTimeStamp; diff --git a/Userland/Libraries/LibWeb/HighResolutionTime/Performance.idl b/Userland/Libraries/LibWeb/HighResolutionTime/Performance.idl index 5ed45278e0..4f2bccf574 100644 --- a/Userland/Libraries/LibWeb/HighResolutionTime/Performance.idl +++ b/Userland/Libraries/LibWeb/HighResolutionTime/Performance.idl @@ -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; }; |