mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 02:37:35 +00:00
LibWeb: Implement PerformanceObserver
This commit is contained in:
parent
5055883b9f
commit
af2886449a
22 changed files with 793 additions and 57 deletions
|
@ -0,0 +1,25 @@
|
|||
#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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue