1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00
ladybird/Libraries/LibWeb/PerformanceTimeline/PerformanceObserver.idl
Timothy Flynn 4e298db4f5 LibWeb: Update FIXMEs about FrozenArray with more up-to-date description
We could support FrozenArray pretty easily here, but we would regress on
SameObject handling.
2025-04-25 16:43:43 +02:00

26 lines
1.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)]
interface PerformanceObserver {
constructor(PerformanceObserverCallback callback);
undefined observe(optional PerformanceObserverInit options = {});
undefined disconnect();
PerformanceEntryList takeRecords();
// FIXME: This should be FrozenArray<DOMString>, but must also always return the same object.
[SameObject] static readonly attribute any supportedEntryTypes;
};