1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:37:45 +00:00

LibWeb: Implement UIEvent.initUIEvent()

1% progression on ACID3. :^)
This commit is contained in:
Andreas Kling 2022-02-25 17:31:56 +01:00
parent 093e66afc0
commit d0ab546d7a
2 changed files with 11 additions and 1 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2020-2022, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -36,6 +36,13 @@ public:
DOM::Window const* view() const { return m_view; }
int detail() const { return m_detail; }
void init_ui_event(String const& type, bool bubbles, bool cancelable, DOM::Window* view, int detail)
{
init_event(type, bubbles, cancelable);
m_view = view;
m_detail = detail;
}
protected:
explicit UIEvent(FlyString const& event_name)
: Event(event_name)