| Index: tools/dom/templates/html/impl/impl_Window.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Window.darttemplate b/tools/dom/templates/html/impl/impl_Window.darttemplate
|
| index a45122ab68f53c799e218fe1167cf95a05a131f3..8fa5bee097475f57b6f54534a8de8b72617cec61 100644
|
| --- a/tools/dom/templates/html/impl/impl_Window.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Window.darttemplate
|
| @@ -271,13 +271,18 @@ $endif
|
| static bool get supportsPointConversions => _DomPoint.supported;
|
| $!MEMBERS
|
|
|
| + /**
|
| + * Static factory designed to expose `beforeunload` events to event
|
| + * handlers that are not necessarily instances of [Window].
|
| + *
|
| + * See [EventStreamProvider] for usage information.
|
| + */
|
| @DomName('Window.beforeunloadEvent')
|
| - @DocsEditable()
|
| static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent =
|
| const _BeforeUnloadEventStreamProvider('beforeunload');
|
|
|
| + /// Stream of `beforeunload` events handled by this [Window].
|
| @DomName('Window.onbeforeunload')
|
| - @DocsEditable()
|
| Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this);
|
|
|
| void moveTo(Point p) {
|
|
|