mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
d4a890080d
NewAKString is effectively the default for any new IDL interface, so let's mark this as the default behavior. It also makes it much easier to figure out whatever interfaces are still left to port over to new AK String.
24 lines
692 B
Text
24 lines
692 B
Text
#import <DOM/AbortSignal.idl>
|
|
|
|
// https://dom.spec.whatwg.org/#eventtarget
|
|
[Exposed=*]
|
|
interface EventTarget {
|
|
|
|
constructor();
|
|
|
|
undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
|
|
undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
|
|
|
|
[ImplementedAs=dispatch_event_binding] boolean dispatchEvent(Event event);
|
|
|
|
};
|
|
|
|
dictionary EventListenerOptions {
|
|
boolean capture = false;
|
|
};
|
|
|
|
dictionary AddEventListenerOptions : EventListenerOptions {
|
|
boolean passive = false;
|
|
boolean once = false;
|
|
AbortSignal signal;
|
|
};
|