diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-02-06 19:12:57 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-09 17:21:05 +0100 |
commit | 820e99f97d4ad6de697a89838086f50be9c38661 (patch) | |
tree | 07d0ae1e1746ede70f086df78e2f1c36186e07fd /Userland/Libraries/LibWeb/HTML/WorkerNavigator.h | |
parent | 8b38df72a32d9052c003c706bc95ff40794c50be (diff) | |
download | serenity-820e99f97d4ad6de697a89838086f50be9c38661.zip |
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 :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/WorkerNavigator.h')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/WorkerNavigator.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/WorkerNavigator.h b/Userland/Libraries/LibWeb/HTML/WorkerNavigator.h new file mode 100644 index 0000000000..6d992e1305 --- /dev/null +++ b/Userland/Libraries/LibWeb/HTML/WorkerNavigator.h @@ -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; +}; + +} |