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