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