mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Implement NavigatorStorage mixin interface
Co-authored-by: Tim Flynn <trflynn89@serenityos.org>
This commit is contained in:
parent
1b84062c74
commit
e3b3041a0c
Notes:
github-actions[bot]
2024-08-16 15:23:10 +00:00
Author: https://github.com/jamierocks
Commit: e3b3041a0c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1066
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/trflynn89 ✅
12 changed files with 93 additions and 3 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <LibWeb/HTML/NavigatorID.h>
|
||||
#include <LibWeb/HTML/NavigatorLanguage.h>
|
||||
#include <LibWeb/HTML/NavigatorOnLine.h>
|
||||
#include <LibWeb/StorageAPI/NavigatorStorage.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
|
@ -18,7 +19,8 @@ class WorkerNavigator : public Bindings::PlatformObject
|
|||
, public NavigatorConcurrentHardwareMixin
|
||||
, public NavigatorIDMixin
|
||||
, public NavigatorLanguageMixin
|
||||
, public NavigatorOnLineMixin {
|
||||
, public NavigatorOnLineMixin
|
||||
, public StorageAPI::NavigatorStorage {
|
||||
WEB_PLATFORM_OBJECT(WorkerNavigator, Bindings::PlatformObject);
|
||||
JS_DECLARE_ALLOCATOR(WorkerNavigator);
|
||||
|
||||
|
@ -31,6 +33,9 @@ private:
|
|||
explicit WorkerNavigator(WorkerGlobalScope&);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
// ^StorageAPI::NavigatorStorage
|
||||
virtual Bindings::PlatformObject const& this_navigator_storage_object() const override { return *this; }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue