2022-02-19 22:02:32 +00:00
|
|
|
#import <DOM/AbortSignal.idl>
|
|
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://dom.spec.whatwg.org/#eventtarget
|
2023-04-09 09:52:27 +02:00
|
|
|
[Exposed=*, UseNewAKString]
|
2020-06-21 12:27:41 +02:00
|
|
|
interface EventTarget {
|
|
|
|
|
|
2022-02-19 22:02:32 +00:00
|
|
|
undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
|
|
|
|
|
undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
|
2020-06-21 12:27:41 +02:00
|
|
|
|
2021-05-04 22:38:36 +01:00
|
|
|
[ImplementedAs=dispatch_event_binding] boolean dispatchEvent(Event event);
|
|
|
|
|
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|
2022-02-19 22:02:32 +00:00
|
|
|
|
|
|
|
|
dictionary EventListenerOptions {
|
|
|
|
|
boolean capture = false;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
dictionary AddEventListenerOptions : EventListenerOptions {
|
|
|
|
|
boolean passive = false;
|
|
|
|
|
boolean once = false;
|
|
|
|
|
AbortSignal signal;
|
|
|
|
|
};
|