OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 /** | 5 /** |
6 * This class has static fields that hold objects that this isolate | 6 * This class has static fields that hold objects that this isolate |
7 * uses to interact with the environment. Which objects are available | 7 * uses to interact with the environment. Which objects are available |
8 * depend on how the isolate was started. In the UI isolate | 8 * depend on how the isolate was started. In the UI isolate |
9 * of the browser, the window object is available. | 9 * of the browser, the window object is available. |
10 */ | 10 */ |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 /** | 31 /** |
32 * Cancel the pending callback callback matching the specified [id]. | 32 * Cancel the pending callback callback matching the specified [id]. |
33 */ | 33 */ |
34 static void cancelRequestAnimationFrame(int id) { | 34 static void cancelRequestAnimationFrame(int id) { |
35 window.clearTimeout(id); | 35 window.clearTimeout(id); |
36 _animationScheduler.cancelRequestAnimationFrame(id); | 36 _animationScheduler.cancelRequestAnimationFrame(id); |
37 } | 37 } |
38 } | 38 } |
39 | 39 |
40 typedef void XMLHttpRequestCompleted(XMLHttpRequest req); | 40 typedef void XMLHttpRequestCompleted(HttpRequest req); |
OLD | NEW |