2021-01-23 20:50:22 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-01-23 20:50:22 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-03-18 17:39:37 +03:00
|
|
|
#include <AK/Error.h>
|
2023-04-06 08:25:18 +03:00
|
|
|
#include <AK/FlyString.h>
|
2021-01-23 20:50:22 +03:00
|
|
|
|
|
|
|
namespace Web::XHR::EventNames {
|
|
|
|
|
|
|
|
#define ENUMERATE_XHR_EVENTS \
|
|
|
|
__ENUMERATE_XHR_EVENT(readystatechange) \
|
|
|
|
__ENUMERATE_XHR_EVENT(loadstart) \
|
|
|
|
__ENUMERATE_XHR_EVENT(progress) \
|
|
|
|
__ENUMERATE_XHR_EVENT(abort) \
|
|
|
|
__ENUMERATE_XHR_EVENT(error) \
|
|
|
|
__ENUMERATE_XHR_EVENT(load) \
|
|
|
|
__ENUMERATE_XHR_EVENT(timeout) \
|
|
|
|
__ENUMERATE_XHR_EVENT(loadend)
|
|
|
|
|
2023-04-06 08:25:18 +03:00
|
|
|
#define __ENUMERATE_XHR_EVENT(name) extern FlyString name;
|
2021-01-23 20:50:22 +03:00
|
|
|
ENUMERATE_XHR_EVENTS
|
|
|
|
#undef __ENUMERATE_XHR_EVENT
|
|
|
|
|
2023-03-18 17:39:37 +03:00
|
|
|
ErrorOr<void> initialize_strings();
|
|
|
|
|
2021-01-23 20:50:22 +03:00
|
|
|
}
|