| 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 html; | 5 part of html; |
| 6 | 6 |
| 7 _serialize(var message) { | 7 _serialize(var message) { |
| 8 return new _JsSerializer().traverse(message); | 8 return new _JsSerializer().traverse(message); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 } | 196 } |
| 197 | 197 |
| 198 get _isolateId => ReceivePortSync._isolateId; | 198 get _isolateId => ReceivePortSync._isolateId; |
| 199 | 199 |
| 200 void _dispatchEvent(String receiver, var message) { | 200 void _dispatchEvent(String receiver, var message) { |
| 201 var event = new CustomEvent(receiver, false, false, JSON.stringify(message)); | 201 var event = new CustomEvent(receiver, false, false, JSON.stringify(message)); |
| 202 window.$dom_dispatchEvent(event); | 202 window.$dom_dispatchEvent(event); |
| 203 } | 203 } |
| 204 | 204 |
| 205 String _getPortSyncEventData(CustomEvent event) => event.detail; | 205 String _getPortSyncEventData(CustomEvent event) => event.detail; |
| OLD | NEW |