mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
100
Libraries/LibWeb/HTML/GlobalEventHandlers.h
Normal file
100
Libraries/LibWeb/HTML/GlobalEventHandlers.h
Normal file
|
@ -0,0 +1,100 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Andreas Kling <andreas@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
#define ENUMERATE_GLOBAL_EVENT_HANDLERS(E) \
|
||||
E(onabort, HTML::EventNames::abort) \
|
||||
E(onauxclick, UIEvents::EventNames::auxclick) \
|
||||
E(onblur, HTML::EventNames::blur) \
|
||||
E(oncancel, HTML::EventNames::cancel) \
|
||||
E(oncanplay, HTML::EventNames::canplay) \
|
||||
E(oncanplaythrough, HTML::EventNames::canplaythrough) \
|
||||
E(onchange, HTML::EventNames::change) \
|
||||
E(onclick, UIEvents::EventNames::click) \
|
||||
E(onclose, HTML::EventNames::close) \
|
||||
E(oncontextmenu, HTML::EventNames::contextmenu) \
|
||||
E(oncuechange, HTML::EventNames::cuechange) \
|
||||
E(ondblclick, UIEvents::EventNames::dblclick) \
|
||||
E(ondrag, HTML::EventNames::drag) \
|
||||
E(ondragend, HTML::EventNames::dragend) \
|
||||
E(ondragenter, HTML::EventNames::dragenter) \
|
||||
E(ondragleave, HTML::EventNames::dragleave) \
|
||||
E(ondragover, HTML::EventNames::dragover) \
|
||||
E(ondragstart, HTML::EventNames::dragstart) \
|
||||
E(ondrop, HTML::EventNames::drop) \
|
||||
E(ondurationchange, HTML::EventNames::durationchange) \
|
||||
E(onemptied, HTML::EventNames::emptied) \
|
||||
E(onended, HTML::EventNames::ended) \
|
||||
E(onerror, HTML::EventNames::error) \
|
||||
E(onfocus, HTML::EventNames::focus) \
|
||||
E(onfocusin, HTML::EventNames::focusin) \
|
||||
E(onfocusout, HTML::EventNames::focusout) \
|
||||
E(onformdata, HTML::EventNames::formdata) \
|
||||
E(oninput, HTML::EventNames::input) \
|
||||
E(oninvalid, HTML::EventNames::invalid) \
|
||||
E(onkeydown, UIEvents::EventNames::keydown) \
|
||||
E(onkeypress, UIEvents::EventNames::keypress) \
|
||||
E(onkeyup, UIEvents::EventNames::keyup) \
|
||||
E(onload, HTML::EventNames::load) \
|
||||
E(onloadeddata, HTML::EventNames::loadeddata) \
|
||||
E(onloadedmetadata, HTML::EventNames::loadedmetadata) \
|
||||
E(onloadstart, HTML::EventNames::loadstart) \
|
||||
E(onmousedown, UIEvents::EventNames::mousedown) \
|
||||
E(onmouseenter, UIEvents::EventNames::mouseenter) \
|
||||
E(onmouseleave, UIEvents::EventNames::mouseleave) \
|
||||
E(onmousemove, UIEvents::EventNames::mousemove) \
|
||||
E(onmouseout, UIEvents::EventNames::mouseout) \
|
||||
E(onmouseover, UIEvents::EventNames::mouseover) \
|
||||
E(onmouseup, UIEvents::EventNames::mouseup) \
|
||||
E(onpause, HTML::EventNames::pause) \
|
||||
E(onplay, HTML::EventNames::play) \
|
||||
E(onplaying, HTML::EventNames::playing) \
|
||||
E(onprogress, HTML::EventNames::progress) \
|
||||
E(onratechange, HTML::EventNames::ratechange) \
|
||||
E(onreset, HTML::EventNames::reset) \
|
||||
E(onresize, HTML::EventNames::resize) \
|
||||
E(onscroll, HTML::EventNames::scroll) \
|
||||
E(onsecuritypolicyviolation, HTML::EventNames::securitypolicyviolation) \
|
||||
E(onseeked, HTML::EventNames::seeked) \
|
||||
E(onseeking, HTML::EventNames::seeking) \
|
||||
E(onselect, HTML::EventNames::select) \
|
||||
E(onselectionchange, HTML::EventNames::selectionchange) \
|
||||
E(onslotchange, HTML::EventNames::slotchange) \
|
||||
E(onstalled, HTML::EventNames::stalled) \
|
||||
E(onsubmit, HTML::EventNames::submit) \
|
||||
E(onsuspend, HTML::EventNames::suspend) \
|
||||
E(ontimeupdate, HTML::EventNames::timeupdate) \
|
||||
E(ontoggle, HTML::EventNames::toggle) \
|
||||
E(onvolumechange, HTML::EventNames::volumechange) \
|
||||
E(onwaiting, HTML::EventNames::waiting) \
|
||||
E(onwebkitanimationend, HTML::EventNames::webkitAnimationEnd) \
|
||||
E(onwebkitanimationiteration, HTML::EventNames::webkitAnimationIteration) \
|
||||
E(onwebkitanimationstart, HTML::EventNames::webkitAnimationStart) \
|
||||
E(onwebkittransitionend, HTML::EventNames::webkitTransitionEnd) \
|
||||
E(onwheel, UIEvents::EventNames::wheel)
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
class GlobalEventHandlers {
|
||||
public:
|
||||
virtual ~GlobalEventHandlers();
|
||||
|
||||
#undef __ENUMERATE
|
||||
#define __ENUMERATE(attribute_name, event_name) \
|
||||
void set_##attribute_name(WebIDL::CallbackType*); \
|
||||
WebIDL::CallbackType* attribute_name();
|
||||
ENUMERATE_GLOBAL_EVENT_HANDLERS(__ENUMERATE)
|
||||
#undef __ENUMERATE
|
||||
|
||||
protected:
|
||||
virtual JS::GCPtr<DOM::EventTarget> global_event_handlers_to_event_target(FlyString const& event_name) = 0;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue