| 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 $if DART2JS | 7 $if DART2JS |
| 8 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" { | 8 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Window,DOMWindow" { |
| 9 $else | 9 $else |
| 10 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 10 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 11 $endif | 11 $endif |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Executes a [callback] after the immediate execution stack has completed. | 14 * Executes a [callback] after the immediate execution stack has completed. |
| 15 * | 15 * |
| 16 * This differs from using Timer.run(callback) | 16 * This differs from using Timer.run(callback) |
| 17 * because Timer will run in about 4-15 milliseconds, depending on browser, | 17 * because Timer will run in about 4-15 milliseconds, depending on browser, |
| 18 * depending on load. [setImmediate], in contrast, makes browser-specific | 18 * depending on load. [setImmediate], in contrast, makes browser-specific |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 return wrapped.returnValue; | 323 return wrapped.returnValue; |
| 324 }); | 324 }); |
| 325 | 325 |
| 326 return controller.stream; | 326 return controller.stream; |
| 327 } | 327 } |
| 328 | 328 |
| 329 String getEventType(EventTarget target) { | 329 String getEventType(EventTarget target) { |
| 330 return _eventType; | 330 return _eventType; |
| 331 } | 331 } |
| 332 } | 332 } |
| OLD | NEW |