ladybird/Libraries/LibWeb/UIEvents/EventNames.h
Andreas Kling 164ed80244 Meta: Enable exit-time destructor warnings for libraries
Enable -Wexit-time-destructors for all in-tree library targets and
update process-lifetime library statics so they no longer register
exit-time destructors. Long-lived caches, lookup tables, singleton
registries, and generated constants now use NeverDestroyed or leaked
references where the data is intended to live until process exit.

Update LibWeb, LibLine, and the binding generators so regenerated
sources follow the same rule instead of reintroducing destructed
statics.
2026-06-04 19:20:49 +02:00

51 lines
1.8 KiB
C++

/*
* Copyright (c) 2020, the SerenityOS developers.
* Copyright (c) 2021, Andreas Kling <andreas@ladybird.org>
* Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/FlyString.h>
#include <LibWeb/Export.h>
namespace Web::UIEvents::EventNames {
#define ENUMERATE_UI_EVENTS \
__ENUMERATE_UI_EVENT(auxclick) \
__ENUMERATE_UI_EVENT(beforeinput) \
__ENUMERATE_UI_EVENT(click) \
__ENUMERATE_UI_EVENT(contextmenu) \
__ENUMERATE_UI_EVENT(dblclick) \
__ENUMERATE_UI_EVENT(gotpointercapture) \
__ENUMERATE_UI_EVENT(input) \
__ENUMERATE_UI_EVENT(keydown) \
__ENUMERATE_UI_EVENT(keypress) \
__ENUMERATE_UI_EVENT(keyup) \
__ENUMERATE_UI_EVENT(lostpointercapture) \
__ENUMERATE_UI_EVENT(mousedown) \
__ENUMERATE_UI_EVENT(mouseenter) \
__ENUMERATE_UI_EVENT(mouseleave) \
__ENUMERATE_UI_EVENT(mousemove) \
__ENUMERATE_UI_EVENT(mouseout) \
__ENUMERATE_UI_EVENT(mouseover) \
__ENUMERATE_UI_EVENT(mouseup) \
__ENUMERATE_UI_EVENT(pointercancel) \
__ENUMERATE_UI_EVENT(pointerdown) \
__ENUMERATE_UI_EVENT(pointerenter) \
__ENUMERATE_UI_EVENT(pointerleave) \
__ENUMERATE_UI_EVENT(pointermove) \
__ENUMERATE_UI_EVENT(pointerout) \
__ENUMERATE_UI_EVENT(pointerover) \
__ENUMERATE_UI_EVENT(pointerrawupdate) \
__ENUMERATE_UI_EVENT(pointerup) \
__ENUMERATE_UI_EVENT(resize) \
__ENUMERATE_UI_EVENT(wheel)
#define __ENUMERATE_UI_EVENT(name) extern WEB_API FlyString const& name;
ENUMERATE_UI_EVENTS
#undef __ENUMERATE_UI_EVENT
}