mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
25 lines
489 B
C++
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;
|
|
};
|
|
|
|
}
|