ladybird/Libraries/LibWeb/HTML/WorkletGlobalScope.h
2024-11-30 11:19:35 +01:00

25 lines
565 B
C++

/*
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Bindings/PlatformObject.h>
namespace Web::HTML {
// https://html.spec.whatwg.org/multipage/worklets.html#workletglobalscope
class WorkletGlobalScope : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(WorkletGlobalScope, Bindings::PlatformObject);
GC_DECLARE_ALLOCATOR(WorkletGlobalScope);
public:
virtual ~WorkletGlobalScope() override;
protected:
explicit WorkletGlobalScope(JS::Realm&);
};
}