ladybird/Libraries/LibWeb/HTML/AbstractWorker.h

25 lines
489 B
C++

/*
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/DOM/EventTarget.h>
namespace Web::HTML {
// https://html.spec.whatwg.org/multipage/workers.html#abstractworker
class AbstractWorker {
public:
virtual ~AbstractWorker() = default;
WebIDL::CallbackType* onerror();
void set_onerror(WebIDL::CallbackType*);
protected:
virtual DOM::EventTarget& this_event_target() = 0;
};
}