/* * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace Web::XHR { #undef __ENUMERATE #define __ENUMERATE(attribute_name, event_name) \ void XMLHttpRequestEventTarget::set_##attribute_name(Optional value) \ { \ set_event_handler_attribute(event_name, move(value)); \ } \ Bindings::CallbackType* XMLHttpRequestEventTarget::attribute_name() \ { \ return event_handler_attribute(event_name); \ } ENUMERATE_XML_HTTP_REQUEST_EVENT_TARGET_EVENT_HANDLERS(__ENUMERATE) #undef __ENUMERATE }