LibWeb/ServiceWorker: Add ServiceWorker event names

This commit is contained in:
Shannon Booth 2025-04-25 17:41:05 +12:00 committed by Andreas Kling
commit 50b7e0807d
Notes: github-actions[bot] 2025-04-25 09:04:00 +00:00
3 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2025, Shannon Booth <shannon@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/ServiceWorker/EventNames.h>
namespace Web::ServiceWorker::EventNames {
#define __ENUMERATE_SERVICE_WORKER_EVENT(name) \
FlyString name = #name##_fly_string;
ENUMERATE_SERVICE_WORKER_EVENTS
#undef __ENUMERATE_SERVICE_WORKER_EVENT
}