1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 19:15:08 +00:00
serenity/Userland/Libraries/LibWeb/PerformanceTimeline/PerformanceObserver.idl
2023-08-27 23:27:44 +02:00

25 lines
1 KiB
Text

#import <PerformanceTimeline/PerformanceObserverEntryList.idl>
// https://w3c.github.io/performance-timeline/#dom-performanceobservercallbackoptions
dictionary PerformanceObserverCallbackOptions {
unsigned long long droppedEntriesCount;
};
callback PerformanceObserverCallback = undefined (PerformanceObserverEntryList entries, PerformanceObserver observer, optional PerformanceObserverCallbackOptions options = {});
// https://w3c.github.io/performance-timeline/#dom-performanceobserverinit
dictionary PerformanceObserverInit {
sequence<DOMString> entryTypes;
DOMString type;
boolean buffered;
};
// https://w3c.github.io/performance-timeline/#dom-performanceobserver
[Exposed=(Window,Worker), UseNewAKString]
interface PerformanceObserver {
constructor(PerformanceObserverCallback callback);
undefined observe(optional PerformanceObserverInit options = {});
undefined disconnect();
PerformanceEntryList takeRecords();
//[SameObject] static readonly attribute sequence<DOMString> supportedEntryTypes;
};