summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/EventTarget.idl
blob: 8913b232b54ee79290fc3220289e994f33f72c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#import <DOM/AbortSignal.idl>

interface EventTarget {

    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;
};