mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
This implements most of the CloseWatcher API from the html spec. AbortSignal support is unimplemented. Integration with dialogs and popovers is also unimplemented.
20 lines
453 B
Plaintext
20 lines
453 B
Plaintext
#import <DOM/EventTarget.idl>
|
|
#import <DOM/EventHandler.idl>
|
|
|
|
// https://html.spec.whatwg.org/multipage/interaction.html#closewatcher
|
|
[Exposed=Window]
|
|
interface CloseWatcher : EventTarget {
|
|
constructor(optional CloseWatcherOptions options = {});
|
|
|
|
undefined requestClose();
|
|
undefined close();
|
|
undefined destroy();
|
|
|
|
attribute EventHandler oncancel;
|
|
attribute EventHandler onclose;
|
|
};
|
|
|
|
dictionary CloseWatcherOptions {
|
|
AbortSignal signal;
|
|
};
|