| 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 // DO NOT EDIT - unless you are editing documentation as per: | 5 // DO NOT EDIT - unless you are editing documentation as per: |
| 6 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation | 6 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
| 7 // Auto-generated dart:html library. | 7 // Auto-generated dart:html library. |
| 8 | 8 |
| 9 /// The Dart HTML library. | 9 /// The Dart HTML library. |
| 10 library dart.dom.html; | 10 library dart.dom.html; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 JS('void', r'window.$dart$isolate$counter = 1'); | 85 JS('void', r'window.$dart$isolate$counter = 1'); |
| 86 } | 86 } |
| 87 return JS('int', r'window.$dart$isolate$counter++'); | 87 return JS('int', r'window.$dart$isolate$counter++'); |
| 88 } | 88 } |
| 89 | 89 |
| 90 // Fast path to invoke JS send port. | 90 // Fast path to invoke JS send port. |
| 91 _callPortSync(int id, message) { | 91 _callPortSync(int id, message) { |
| 92 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); | 92 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); |
| 93 } | 93 } |
| 94 | 94 |
| 95 spawnDomFunction(Function f) => IsolateNatives.spawnDomFunction(f); | 95 Future<SendPort> spawnDomFunction(Function f) => |
| 96 new Future.value(IsolateNatives.spawnDomFunction(f)); |
| OLD | NEW |