CloseWatcher.idl 467 B

12345678910111213141516171819
  1. #import <DOM/EventTarget.idl>
  2. #import <DOM/EventHandler.idl>
  3. // https://html.spec.whatwg.org/multipage/interaction.html#closewatcher
  4. [Exposed=Window]
  5. interface CloseWatcher : EventTarget {
  6. constructor(optional CloseWatcherOptions options = {});
  7. undefined requestClose();
  8. undefined close();
  9. undefined destroy();
  10. attribute EventHandler oncancel;
  11. attribute EventHandler onclose;
  12. };
  13. dictionary CloseWatcherOptions {
  14. AbortSignal signal;
  15. };