mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 17:24:48 -05:00
LibWeb: Implement definition of remaining global event handlers
This commit is contained in:
parent
9884cd0628
commit
172d5f6987
Notes:
github-actions[bot]
2025-01-05 16:20:19 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/172d5f6987a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3147 Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 12 additions and 3 deletions
|
@ -17,7 +17,7 @@ interface mixin GlobalEventHandlers {
|
|||
attribute EventHandler onabort;
|
||||
attribute EventHandler onauxclick;
|
||||
attribute EventHandler onbeforeinput;
|
||||
// TODO: attribute EventHandler onbeforematch;
|
||||
attribute EventHandler onbeforematch;
|
||||
attribute EventHandler onbeforetoggle;
|
||||
attribute EventHandler onblur;
|
||||
attribute EventHandler oncancel;
|
||||
|
@ -26,9 +26,9 @@ interface mixin GlobalEventHandlers {
|
|||
attribute EventHandler onchange;
|
||||
attribute EventHandler onclick;
|
||||
attribute EventHandler onclose;
|
||||
// TODO: attribute EventHandler oncontextlost;
|
||||
attribute EventHandler oncontextlost;
|
||||
attribute EventHandler oncontextmenu;
|
||||
// TODO: attribute EventHandler oncontextrestored;
|
||||
attribute EventHandler oncontextrestored;
|
||||
attribute EventHandler oncopy;
|
||||
attribute EventHandler oncuechange;
|
||||
attribute EventHandler oncut;
|
||||
|
|
|
@ -138,6 +138,7 @@ namespace AttributeNames {
|
|||
__ENUMERATE_HTML_ATTRIBUTE(onafterprint) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(onauxclick) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(onbeforeinput) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(onbeforematch) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(onbeforeprint) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(onbeforetoggle) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(onbeforeunload) \
|
||||
|
@ -148,7 +149,9 @@ namespace AttributeNames {
|
|||
__ENUMERATE_HTML_ATTRIBUTE(onchange) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(onclick) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(onclose) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(oncontextlost) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(oncontextmenu) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(oncontextrestored) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(oncopy) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(oncuechange) \
|
||||
__ENUMERATE_HTML_ATTRIBUTE(oncut) \
|
||||
|
|
|
@ -23,6 +23,7 @@ namespace Web::HTML::EventNames {
|
|||
__ENUMERATE_HTML_EVENT(animationiteration) \
|
||||
__ENUMERATE_HTML_EVENT(animationstart) \
|
||||
__ENUMERATE_HTML_EVENT(beforeinput) \
|
||||
__ENUMERATE_HTML_EVENT(beforematch) \
|
||||
__ENUMERATE_HTML_EVENT(beforeprint) \
|
||||
__ENUMERATE_HTML_EVENT(beforetoggle) \
|
||||
__ENUMERATE_HTML_EVENT(beforeunload) \
|
||||
|
@ -36,7 +37,9 @@ namespace Web::HTML::EventNames {
|
|||
__ENUMERATE_HTML_EVENT(close) \
|
||||
__ENUMERATE_HTML_EVENT(complete) \
|
||||
__ENUMERATE_HTML_EVENT(connect) \
|
||||
__ENUMERATE_HTML_EVENT(contextlost) \
|
||||
__ENUMERATE_HTML_EVENT(contextmenu) \
|
||||
__ENUMERATE_HTML_EVENT(contextrestored) \
|
||||
__ENUMERATE_HTML_EVENT(controllerchange) \
|
||||
__ENUMERATE_HTML_EVENT(copy) \
|
||||
__ENUMERATE_HTML_EVENT(cuechange) \
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
E(onabort, HTML::EventNames::abort) \
|
||||
E(onauxclick, UIEvents::EventNames::auxclick) \
|
||||
E(onbeforeinput, HTML::EventNames::beforeinput) \
|
||||
E(onbeforematch, HTML::EventNames::beforematch) \
|
||||
E(onbeforetoggle, HTML::EventNames::beforetoggle) \
|
||||
E(onblur, HTML::EventNames::blur) \
|
||||
E(oncancel, HTML::EventNames::cancel) \
|
||||
|
@ -21,7 +22,9 @@
|
|||
E(onchange, HTML::EventNames::change) \
|
||||
E(onclick, UIEvents::EventNames::click) \
|
||||
E(onclose, HTML::EventNames::close) \
|
||||
E(oncontextlost, HTML::EventNames::contextlost) \
|
||||
E(oncontextmenu, HTML::EventNames::contextmenu) \
|
||||
E(oncontextrestored, HTML::EventNames::contextrestored) \
|
||||
E(oncopy, HTML::EventNames::copy) \
|
||||
E(oncuechange, HTML::EventNames::cuechange) \
|
||||
E(oncut, HTML::EventNames::cut) \
|
||||
|
|
Loading…
Reference in a new issue