mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-10 01:59:43 +00:00
LibWeb: Stub WebSerial API
This commit is contained in:
parent
34ec33d71c
commit
1be31c103f
Notes:
github-actions[bot]
2025-08-08 08:24:30 +00:00
Author: https://github.com/EdwinHoksberg
Commit: 1be31c103f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5740
Reviewed-by: https://github.com/gmta ✅
19 changed files with 715 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <LibWeb/HTML/NavigatorLanguage.h>
|
||||
#include <LibWeb/HTML/NavigatorOnLine.h>
|
||||
#include <LibWeb/MediaCapabilitiesAPI/MediaCapabilities.h>
|
||||
#include <LibWeb/Serial/Serial.h>
|
||||
#include <LibWeb/ServiceWorker/ServiceWorkerContainer.h>
|
||||
#include <LibWeb/StorageAPI/NavigatorStorage.h>
|
||||
|
||||
|
@ -38,6 +39,8 @@ public:
|
|||
|
||||
GC::Ref<MediaCapabilitiesAPI::MediaCapabilities> media_capabilities();
|
||||
|
||||
[[nodiscard]] GC::Ref<Serial::Serial> serial();
|
||||
|
||||
private:
|
||||
explicit WorkerNavigator(WorkerGlobalScope&);
|
||||
|
||||
|
@ -50,6 +53,9 @@ private:
|
|||
// https://w3c.github.io/media-capabilities/#dom-workernavigator-mediacapabilities
|
||||
GC::Ptr<MediaCapabilitiesAPI::MediaCapabilities> m_media_capabilities;
|
||||
|
||||
// https://wicg.github.io/serial/#extensions-to-the-workernavigator-interface
|
||||
GC::Ptr<Serial::Serial> m_serial;
|
||||
|
||||
GC::Ptr<ServiceWorker::ServiceWorkerContainer> m_service_worker_container;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue