mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-08 12:12:53 +00:00
26 lines
1.1 KiB
Text
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: [SameObject] static readonly attribute FrozenArray<DOMString> supportedEntryTypes;
|
|
[SameObject] static readonly attribute any supportedEntryTypes;
|
|
};
|