| 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 /** | 9 /** |
| 10 * HTML elements and other resources for web-based applications that need to | 10 * HTML elements and other resources for web-based applications that need to |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 if (JS('bool', r'!window.$dart$isolate$counter')) { | 126 if (JS('bool', r'!window.$dart$isolate$counter')) { |
| 127 JS('void', r'window.$dart$isolate$counter = 1'); | 127 JS('void', r'window.$dart$isolate$counter = 1'); |
| 128 } | 128 } |
| 129 return JS('int', r'window.$dart$isolate$counter++'); | 129 return JS('int', r'window.$dart$isolate$counter++'); |
| 130 } | 130 } |
| 131 | 131 |
| 132 // Fast path to invoke JS send port. | 132 // Fast path to invoke JS send port. |
| 133 _callPortSync(int id, message) { | 133 _callPortSync(int id, message) { |
| 134 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); | 134 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); |
| 135 } | 135 } |
| 136 | |
| 137 Future<SendPort> spawnDomFunction(Function f) => | |
| 138 new Future.value(IsolateNatives.spawnDomFunction(f)); | |
| OLD | NEW |