OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import 'dart:isolate'; | 5 import 'dart:isolate'; |
6 import 'dart:_internal'; | 6 import 'dart:_internal'; |
7 | 7 |
8 @patch bool debugger({bool when: true, | 8 @patch bool debugger({bool when: true, |
9 String message}) native "Developer_debugger"; | 9 String message}) native "Developer_debugger"; |
10 | 10 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 } else { | 147 } else { |
148 sb.write('"id":$id}'); | 148 sb.write('"id":$id}'); |
149 } | 149 } |
150 replyPort.send(sb.toString()); | 150 replyPort.send(sb.toString()); |
151 } | 151 } |
152 | 152 |
153 @patch int _getServiceMajorVersion() native "Developer_getServiceMajorVersion"; | 153 @patch int _getServiceMajorVersion() native "Developer_getServiceMajorVersion"; |
154 | 154 |
155 @patch int _getServiceMinorVersion() native "Developer_getServiceMinorVersion"; | 155 @patch int _getServiceMinorVersion() native "Developer_getServiceMinorVersion"; |
156 | 156 |
157 @patch void _getServerInfo(SendPort sp) native "Developer_getServerInfo"; | 157 @patch void _getServerInfo(SendPort sendPort) native "Developer_getServerInfo"; |
158 | 158 |
159 @patch void _webServerControl(SendPort sp, bool enable) | 159 @patch void _webServerControl(SendPort sendPort, bool enable) |
160 native "Developer_webServerControl"; | 160 native "Developer_webServerControl"; |
| 161 |
| 162 @patch String _getIsolateIDFromSendPort(SendPort sendPort) |
| 163 native "Developer_getIsolateIDFromSendPort"; |
OLD | NEW |