2022-02-20 01:02:32 +03:00
|
|
|
#import <DOM/AbortSignal.idl>
|
|
|
|
|
2022-10-08 01:45:09 +03:00
|
|
|
// https://dom.spec.whatwg.org/#eventtarget
|
2023-09-02 17:00:01 +03:00
|
|
|
[Exposed=*]
|
2020-06-21 13:27:41 +03:00
|
|
|
interface EventTarget {
|
|
|
|
|
2023-05-03 23:10:26 +03:00
|
|
|
constructor();
|
|
|
|
|
2022-02-20 01: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 = {});
|
2020-06-21 13:27:41 +03:00
|
|
|
|
2021-05-05 00:38:36 +03:00
|
|
|
[ImplementedAs=dispatch_event_binding] boolean dispatchEvent(Event event);
|
|
|
|
|
2020-12-10 00:26:42 +03:00
|
|
|
};
|
2022-02-20 01:02:32 +03:00
|
|
|
|
|
|
|
dictionary EventListenerOptions {
|
|
|
|
boolean capture = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
dictionary AddEventListenerOptions : EventListenerOptions {
|
|
|
|
boolean passive = false;
|
|
|
|
boolean once = false;
|
|
|
|
AbortSignal signal;
|
|
|
|
};
|