mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Add stub definition for WorkletGlobalScope
This commit is contained in:
parent
286c177896
commit
b39f4f0b5a
Notes:
github-actions[bot]
2024-11-30 10:20:24 +00:00
Author: https://github.com/shannonbooth
Commit: b39f4f0b5a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2653
5 changed files with 50 additions and 0 deletions
25
Libraries/LibWeb/HTML/WorkletGlobalScope.h
Normal file
25
Libraries/LibWeb/HTML/WorkletGlobalScope.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* 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&);
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue