mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 09:50:27 +00:00
Generate correct bindings for callback interfaces: only create an interface object when the interface declares constants, and set up the prototype correctly. This also lets us tidy up some IDL for these callback interfaces.
22 lines
713 B
Text
22 lines
713 B
Text
#import <DOM/AbortSignal.idl>
|
|
#import <DOM/EventListener.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;
|
|
boolean once = false;
|
|
AbortSignal signal;
|
|
};
|