mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-29 22:42:52 +00:00
https://www.w3.org/TR/event-timing/#sec-performance-event-timing Add idl, header and stubs for PerformanceEventTiming interface. Two missing `PerformanceEntry` types that have come up in issues are the `first-input` and the `event` entryTypes. Those are both this. Also, because both of those are this same interface, the static methods from the parent class are difficult to implement because of instance-specific details. Might either need subclasses or to edit the parent and also everything that inherits from it :/
18 lines
712 B
Text
18 lines
712 B
Text
#import <PerformanceTimeline/PerformanceEntry.idl>
|
|
|
|
// https://www.w3.org/TR/event-timing/#sec-performance-event-timing
|
|
[Exposed=Window]
|
|
interface PerformanceEventTiming : PerformanceEntry {
|
|
readonly attribute DOMHighResTimeStamp processingStart;
|
|
readonly attribute DOMHighResTimeStamp processingEnd;
|
|
readonly attribute boolean cancelable;
|
|
readonly attribute Node? target;
|
|
readonly attribute unsigned long long interactionId;
|
|
[Default] object toJSON();
|
|
};
|
|
|
|
|
|
// Potential fixme: This spec has some more IDLs
|
|
// https://www.w3.org/TR/event-timing/#sec-event-counts
|
|
// https://www.w3.org/TR/event-timing/#sec-extensions
|
|
// https://www.w3.org/TR/event-timing/#sec-modifications-perf-timeline
|