// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // https://github.com/WICG/close-watcher [ Exposed=Window ] interface CloseWatcher : EventTarget { [CallWith=ScriptState, RaisesException, MeasureAs=CloseWatcherScriptConstructor] constructor(optional CloseWatcherOptions options = {}); [ImplementedAs=requestCloseForBinding] void requestClose(); void close(); void destroy(); attribute EventHandler oncancel; attribute EventHandler onclose; };