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

// https://w3c.github.io/uievents/#uievent
[Exposed=Window]
interface UIEvent : Event {
    constructor(DOMString type, optional UIEventInit eventInitDict = {});
    readonly attribute Window? view;
    readonly attribute long detail;

    // NOTE: This is "deprecated, but supported for backwards-compatibility with widely-deployed implementations."
    [ImplementedAs=init_ui_event] undefined initUIEvent(DOMString typeArg, optional boolean bubblesArg = false, optional boolean cancelableArg = false, optional Window? viewArg = null, optional long detailArg = 0);

    readonly attribute unsigned long which;
};

dictionary UIEventInit : EventInit {
    Window? view = null;
    long detail = 0;
};