Serenity Operating System
1[LegacyTreatNonObjectAsNull]
2callback EventHandlerNonNull = any (Event event);
3typedef EventHandlerNonNull? EventHandler;
4
5[LegacyTreatNonObjectAsNull]
6callback OnErrorEventHandlerNonNull = any ((Event or DOMString) event, optional DOMString source, optional unsigned long lineno, optional unsigned long colno, optional any error);
7typedef OnErrorEventHandlerNonNull? OnErrorEventHandler;
8
9[LegacyTreatNonObjectAsNull]
10callback OnBeforeUnloadEventHandlerNonNull = DOMString? (Event event);
11typedef OnBeforeUnloadEventHandlerNonNull? OnBeforeUnloadEventHandler;
12
13interface mixin GlobalEventHandlers {
14 attribute EventHandler onabort;
15 attribute EventHandler onauxclick;
16 // TODO: attribute EventHandler onbeforematch;
17 attribute EventHandler onblur;
18 attribute EventHandler oncancel;
19 attribute EventHandler oncanplay;
20 attribute EventHandler oncanplaythrough;
21 attribute EventHandler onchange;
22 attribute EventHandler onclick;
23 attribute EventHandler onclose;
24 // TODO: attribute EventHandler oncontextlost;
25 attribute EventHandler oncontextmenu;
26 // TODO: attribute EventHandler oncontextrestored;
27 attribute EventHandler oncuechange;
28 attribute EventHandler ondblclick;
29 attribute EventHandler ondrag;
30 attribute EventHandler ondragend;
31 attribute EventHandler ondragenter;
32 attribute EventHandler ondragleave;
33 attribute EventHandler ondragover;
34 attribute EventHandler ondragstart;
35 attribute EventHandler ondrop;
36 attribute EventHandler ondurationchange;
37 attribute EventHandler onemptied;
38 attribute EventHandler onended;
39 attribute OnErrorEventHandler onerror;
40 attribute EventHandler onfocus;
41 attribute EventHandler onformdata;
42 attribute EventHandler oninput;
43 attribute EventHandler oninvalid;
44 attribute EventHandler onkeydown;
45 attribute EventHandler onkeypress;
46 attribute EventHandler onkeyup;
47 attribute EventHandler onload;
48 attribute EventHandler onloadeddata;
49 attribute EventHandler onloadedmetadata;
50 attribute EventHandler onloadstart;
51 attribute EventHandler onmousedown;
52 [LegacyLenientThis] attribute EventHandler onmouseenter;
53 [LegacyLenientThis] attribute EventHandler onmouseleave;
54 attribute EventHandler onmousemove;
55 attribute EventHandler onmouseout;
56 attribute EventHandler onmouseover;
57 attribute EventHandler onmouseup;
58 attribute EventHandler onpause;
59 attribute EventHandler onplay;
60 attribute EventHandler onplaying;
61 attribute EventHandler onprogress;
62 attribute EventHandler onratechange;
63 attribute EventHandler onreset;
64 attribute EventHandler onresize;
65 attribute EventHandler onscroll;
66 attribute EventHandler onsecuritypolicyviolation;
67 attribute EventHandler onseeked;
68 attribute EventHandler onseeking;
69 attribute EventHandler onselect;
70 attribute EventHandler onslotchange;
71 attribute EventHandler onstalled;
72 attribute EventHandler onsubmit;
73 attribute EventHandler onsuspend;
74 attribute EventHandler ontimeupdate;
75 attribute EventHandler ontoggle;
76 attribute EventHandler onvolumechange;
77 attribute EventHandler onwaiting;
78 attribute EventHandler onwebkitanimationend;
79 attribute EventHandler onwebkitanimationiteration;
80 attribute EventHandler onwebkitanimationstart;
81 attribute EventHandler onwebkittransitionend;
82 attribute EventHandler onwheel;
83};
84
85interface mixin WindowEventHandlers {
86 attribute EventHandler onafterprint;
87 attribute EventHandler onbeforeprint;
88 attribute OnBeforeUnloadEventHandler onbeforeunload;
89 attribute EventHandler onhashchange;
90 attribute EventHandler onlanguagechange;
91 attribute EventHandler onmessage;
92 attribute EventHandler onmessageerror;
93 attribute EventHandler onoffline;
94 attribute EventHandler ononline;
95 attribute EventHandler onpagehide;
96 attribute EventHandler onpageshow;
97 attribute EventHandler onpopstate;
98 attribute EventHandler onrejectionhandled;
99 attribute EventHandler onstorage;
100 attribute EventHandler onunhandledrejection;
101 attribute EventHandler onunload;
102};