LibWeb: Add initial implementation for WorkerGlobalScope

This initial implementation stubs out the WorkerGlobalScope,
WorkerLocation and WorkerNavigator classes. It doesn't take into account
all the things that actually need passed into the constructors for these
objects, nor the extra abstract operations that need to be performed on
them by the rest of the Browser infrastructure. However, it does create
bindings that compile and link :^)
This commit is contained in:
Andrew Kaster 2022-02-06 19:12:57 -07:00 committed by Andreas Kling
commit 820e99f97d
Notes: sideshowbarker 2024-07-17 19:06:15 +09:00
11 changed files with 527 additions and 0 deletions

View file

@ -0,0 +1,23 @@
/*
* Copyright (c) 2022, Andrew Kaster <akaster@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/RefCounted.h>
#include <LibWeb/Bindings/Wrappable.h>
#include <LibWeb/Forward.h>
namespace Web::HTML {
// FIXME: Add Mixin APIs from https://html.spec.whatwg.org/multipage/workers.html#the-workernavigator-object
class WorkerNavigator
: public RefCounted<WorkerNavigator>
, public Bindings::Wrappable {
public:
using WrapperType = Bindings::WorkerNavigatorWrapper;
};
}