mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWeb: Implement CloseWatcher API
This implements most of the CloseWatcher API from the html spec. AbortSignal support is unimplemented. Integration with dialogs and popovers is also unimplemented.
This commit is contained in:
committed by
Andreas Kling
parent
527632f416
commit
b216046234
@@ -162,6 +162,7 @@ public:
|
||||
WebIDL::ExceptionOr<JS::GCPtr<WindowProxy>> open(Optional<String> const& url, Optional<String> const& target, Optional<String> const& features);
|
||||
|
||||
[[nodiscard]] JS::NonnullGCPtr<Navigator> navigator();
|
||||
[[nodiscard]] JS::NonnullGCPtr<CloseWatcherManager> close_watcher_manager();
|
||||
|
||||
void alert(String const& message = {});
|
||||
bool confirm(Optional<String> const& message);
|
||||
@@ -269,6 +270,7 @@ private:
|
||||
JS::GCPtr<CSS::Screen> m_screen;
|
||||
JS::GCPtr<Navigator> m_navigator;
|
||||
JS::GCPtr<Location> m_location;
|
||||
JS::GCPtr<CloseWatcherManager> m_close_watcher_manager;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#window-navigation-api
|
||||
JS::GCPtr<Navigation> m_navigation;
|
||||
|
||||
Reference in New Issue
Block a user