Skip to content

Commit 172d5f6

Browse files
shannonboothtcl3
authored andcommitted
LibWeb: Implement definition of remaining global event handlers
1 parent 9884cd0 commit 172d5f6

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

Libraries/LibWeb/DOM/EventHandler.idl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface mixin GlobalEventHandlers {
1717
attribute EventHandler onabort;
1818
attribute EventHandler onauxclick;
1919
attribute EventHandler onbeforeinput;
20-
// TODO: attribute EventHandler onbeforematch;
20+
attribute EventHandler onbeforematch;
2121
attribute EventHandler onbeforetoggle;
2222
attribute EventHandler onblur;
2323
attribute EventHandler oncancel;
@@ -26,9 +26,9 @@ interface mixin GlobalEventHandlers {
2626
attribute EventHandler onchange;
2727
attribute EventHandler onclick;
2828
attribute EventHandler onclose;
29-
// TODO: attribute EventHandler oncontextlost;
29+
attribute EventHandler oncontextlost;
3030
attribute EventHandler oncontextmenu;
31-
// TODO: attribute EventHandler oncontextrestored;
31+
attribute EventHandler oncontextrestored;
3232
attribute EventHandler oncopy;
3333
attribute EventHandler oncuechange;
3434
attribute EventHandler oncut;

Libraries/LibWeb/HTML/AttributeNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ namespace AttributeNames {
138138
__ENUMERATE_HTML_ATTRIBUTE(onafterprint) \
139139
__ENUMERATE_HTML_ATTRIBUTE(onauxclick) \
140140
__ENUMERATE_HTML_ATTRIBUTE(onbeforeinput) \
141+
__ENUMERATE_HTML_ATTRIBUTE(onbeforematch) \
141142
__ENUMERATE_HTML_ATTRIBUTE(onbeforeprint) \
142143
__ENUMERATE_HTML_ATTRIBUTE(onbeforetoggle) \
143144
__ENUMERATE_HTML_ATTRIBUTE(onbeforeunload) \
@@ -148,7 +149,9 @@ namespace AttributeNames {
148149
__ENUMERATE_HTML_ATTRIBUTE(onchange) \
149150
__ENUMERATE_HTML_ATTRIBUTE(onclick) \
150151
__ENUMERATE_HTML_ATTRIBUTE(onclose) \
152+
__ENUMERATE_HTML_ATTRIBUTE(oncontextlost) \
151153
__ENUMERATE_HTML_ATTRIBUTE(oncontextmenu) \
154+
__ENUMERATE_HTML_ATTRIBUTE(oncontextrestored) \
152155
__ENUMERATE_HTML_ATTRIBUTE(oncopy) \
153156
__ENUMERATE_HTML_ATTRIBUTE(oncuechange) \
154157
__ENUMERATE_HTML_ATTRIBUTE(oncut) \

Libraries/LibWeb/HTML/EventNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace Web::HTML::EventNames {
2323
__ENUMERATE_HTML_EVENT(animationiteration) \
2424
__ENUMERATE_HTML_EVENT(animationstart) \
2525
__ENUMERATE_HTML_EVENT(beforeinput) \
26+
__ENUMERATE_HTML_EVENT(beforematch) \
2627
__ENUMERATE_HTML_EVENT(beforeprint) \
2728
__ENUMERATE_HTML_EVENT(beforetoggle) \
2829
__ENUMERATE_HTML_EVENT(beforeunload) \
@@ -36,7 +37,9 @@ namespace Web::HTML::EventNames {
3637
__ENUMERATE_HTML_EVENT(close) \
3738
__ENUMERATE_HTML_EVENT(complete) \
3839
__ENUMERATE_HTML_EVENT(connect) \
40+
__ENUMERATE_HTML_EVENT(contextlost) \
3941
__ENUMERATE_HTML_EVENT(contextmenu) \
42+
__ENUMERATE_HTML_EVENT(contextrestored) \
4043
__ENUMERATE_HTML_EVENT(controllerchange) \
4144
__ENUMERATE_HTML_EVENT(copy) \
4245
__ENUMERATE_HTML_EVENT(cuechange) \

Libraries/LibWeb/HTML/GlobalEventHandlers.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
E(onabort, HTML::EventNames::abort) \
1414
E(onauxclick, UIEvents::EventNames::auxclick) \
1515
E(onbeforeinput, HTML::EventNames::beforeinput) \
16+
E(onbeforematch, HTML::EventNames::beforematch) \
1617
E(onbeforetoggle, HTML::EventNames::beforetoggle) \
1718
E(onblur, HTML::EventNames::blur) \
1819
E(oncancel, HTML::EventNames::cancel) \
@@ -21,7 +22,9 @@
2122
E(onchange, HTML::EventNames::change) \
2223
E(onclick, UIEvents::EventNames::click) \
2324
E(onclose, HTML::EventNames::close) \
25+
E(oncontextlost, HTML::EventNames::contextlost) \
2426
E(oncontextmenu, HTML::EventNames::contextmenu) \
27+
E(oncontextrestored, HTML::EventNames::contextrestored) \
2528
E(oncopy, HTML::EventNames::copy) \
2629
E(oncuechange, HTML::EventNames::cuechange) \
2730
E(oncut, HTML::EventNames::cut) \

0 commit comments

Comments
 (0)