| 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 | 5 // DO NOT EDIT |
| 6 // Auto-generated dart:html library. | 6 // Auto-generated dart:html library. |
| 7 | 7 |
| 8 #library('html'); | 8 #library('html'); |
| 9 | 9 |
| 10 #import('dart:isolate'); | 10 #import('dart:isolate'); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 } | 69 } |
| 70 | 70 |
| 71 class _JsSendPortSync implements SendPortSync { | 71 class _JsSendPortSync implements SendPortSync { |
| 72 | 72 |
| 73 num _id; | 73 num _id; |
| 74 _JsSendPortSync(this._id); | 74 _JsSendPortSync(this._id); |
| 75 | 75 |
| 76 callSync(var message) { | 76 callSync(var message) { |
| 77 var serialized = _serialize(message); | 77 var serialized = _serialize(message); |
| 78 var result = _call(_id, serialized); | 78 var result = |
| 79 JS('var', @'ReceivePortSync.dispatchCall(#, #)', _id, serialized); |
| 79 return _deserialize(result); | 80 return _deserialize(result); |
| 80 } | 81 } |
| 81 | 82 |
| 82 static _call(num id, var message) native @""" | |
| 83 return ReceivePortSync.dispatchCall(id, message); | |
| 84 """; | |
| 85 | |
| 86 } | 83 } |
| OLD | NEW |