| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 $!TOPLEVEL |
| 8 |
| 7 @DocsEditable() | 9 @DocsEditable() |
| 8 $if DART2JS | 10 $if DART2JS |
| 9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind
ow,DOMWindow" { | 11 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind
ow,DOMWindow" { |
| 10 $else | 12 $else |
| 11 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 13 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 12 $endif | 14 $endif |
| 13 | 15 |
| 14 /** | 16 /** |
| 15 * Returns a Future that completes just before the window is about to | 17 * Returns a Future that completes just before the window is about to |
| 16 * repaint so the user can draw an animation frame. | 18 * repaint so the user can draw an animation frame. |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 369 |
| 368 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false
}) { | 370 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false
}) { |
| 369 return new _ElementEventStreamImpl(e, _eventType, useCapture); | 371 return new _ElementEventStreamImpl(e, _eventType, useCapture); |
| 370 } | 372 } |
| 371 | 373 |
| 372 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, | 374 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, |
| 373 {bool useCapture: false}) { | 375 {bool useCapture: false}) { |
| 374 return new _ElementListEventStreamImpl(e, _eventType, useCapture); | 376 return new _ElementListEventStreamImpl(e, _eventType, useCapture); |
| 375 } | 377 } |
| 376 } | 378 } |
| OLD | NEW |