mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Implement ServiceWorkerContainer.onmessage
This commit is contained in:
parent
820676857a
commit
4b1273cbde
Notes:
github-actions[bot]
2024-08-28 17:37:27 +00:00
Author: https://github.com/jamierocks
Commit: 4b1273cbde
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1196
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 22 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Tim Ledbetter <tim.ledbetter@ladybird.org>
|
||||
* Copyright (c) 2024, Jamie Mansfield <jmansfield@cadixdev.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -16,10 +17,14 @@ class ServiceWorkerContainer : public DOM::EventTarget {
|
|||
|
||||
public:
|
||||
[[nodiscard]] static JS::NonnullGCPtr<ServiceWorkerContainer> create(JS::Realm& realm);
|
||||
|
||||
explicit ServiceWorkerContainer(JS::Realm&);
|
||||
virtual ~ServiceWorkerContainer() override = default;
|
||||
|
||||
WebIDL::CallbackType* onmessage();
|
||||
void set_onmessage(WebIDL::CallbackType*);
|
||||
|
||||
private:
|
||||
explicit ServiceWorkerContainer(JS::Realm&);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue