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 @DocsEditable() | 7 @DocsEditable() |
8 $if DART2JS | 8 $if DART2JS |
9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind
ow,DOMWindow" { | 9 $(ANNOTATIONS)@Native("Window,DOMWindow") |
| 10 $(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { |
10 $else | 11 $else |
11 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 12 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ |
12 $endif | 13 $endif |
13 | 14 |
14 /** | 15 /** |
15 * Returns a Future that completes just before the window is about to | 16 * Returns a Future that completes just before the window is about to |
16 * repaint so the user can draw an animation frame. | 17 * repaint so the user can draw an animation frame. |
17 * | 18 * |
18 * If you need to later cancel this animation, use [requestAnimationFrame] | 19 * If you need to later cancel this animation, use [requestAnimationFrame] |
19 * instead. | 20 * instead. |
20 * | 21 * |
21 * The [Future] completes to a timestamp that represents a floating | 22 * The [Future] completes to a timestamp that represents a floating |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 368 |
368 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false
}) { | 369 ElementStream<BeforeUnloadEvent> forElement(Element e, {bool useCapture: false
}) { |
369 return new _ElementEventStreamImpl(e, _eventType, useCapture); | 370 return new _ElementEventStreamImpl(e, _eventType, useCapture); |
370 } | 371 } |
371 | 372 |
372 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, | 373 ElementStream<BeforeUnloadEvent> _forElementList(ElementList e, |
373 {bool useCapture: false}) { | 374 {bool useCapture: false}) { |
374 return new _ElementListEventStreamImpl(e, _eventType, useCapture); | 375 return new _ElementListEventStreamImpl(e, _eventType, useCapture); |
375 } | 376 } |
376 } | 377 } |
OLD | NEW |