/src/serenity/Userland/Libraries/LibWeb/XHR/XMLHttpRequestEventTarget.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2021, Andreas Kling <kling@serenityos.org> |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #include <LibWeb/Bindings/XMLHttpRequestEventTargetPrototype.h> |
8 | | #include <LibWeb/HTML/EventHandler.h> |
9 | | #include <LibWeb/XHR/EventNames.h> |
10 | | #include <LibWeb/XHR/XMLHttpRequestEventTarget.h> |
11 | | |
12 | | namespace Web::XHR { |
13 | | |
14 | | #undef __ENUMERATE |
15 | | #define __ENUMERATE(attribute_name, event_name) \ |
16 | | void XMLHttpRequestEventTarget::set_##attribute_name(WebIDL::CallbackType* value) \ |
17 | 0 | { \ |
18 | 0 | set_event_handler_attribute(event_name, value); \ |
19 | 0 | } \ Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::set_onloadstart(Web::WebIDL::CallbackType*) Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::set_onprogress(Web::WebIDL::CallbackType*) Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::set_onabort(Web::WebIDL::CallbackType*) Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::set_onerror(Web::WebIDL::CallbackType*) Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::set_onload(Web::WebIDL::CallbackType*) Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::set_ontimeout(Web::WebIDL::CallbackType*) Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::set_onloadend(Web::WebIDL::CallbackType*) |
20 | | WebIDL::CallbackType* XMLHttpRequestEventTarget::attribute_name() \ |
21 | 0 | { \ |
22 | 0 | return event_handler_attribute(event_name); \ |
23 | 0 | } Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::onloadstart() Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::onprogress() Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::onabort() Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::onerror() Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::onload() Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::ontimeout() Unexecuted instantiation: Web::XHR::XMLHttpRequestEventTarget::onloadend() |
24 | | ENUMERATE_XML_HTTP_REQUEST_EVENT_TARGET_EVENT_HANDLERS(__ENUMERATE) |
25 | | #undef __ENUMERATE |
26 | | |
27 | | } |