OLD | NEW |
1 // Copyright (c) 2013, 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 library vmservice; | 5 library dart._vmservice; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
10 import 'dart:typed_data'; | 10 import 'dart:typed_data'; |
11 | 11 |
12 part 'client.dart'; | 12 part 'client.dart'; |
13 part 'constants.dart'; | 13 part 'constants.dart'; |
14 part 'running_isolate.dart'; | 14 part 'running_isolate.dart'; |
15 part 'running_isolates.dart'; | 15 part 'running_isolates.dart'; |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 RawReceivePort boot() { | 315 RawReceivePort boot() { |
316 // Return the port we expect isolate startup and shutdown messages on. | 316 // Return the port we expect isolate startup and shutdown messages on. |
317 return isolateLifecyclePort; | 317 return isolateLifecyclePort; |
318 } | 318 } |
319 | 319 |
320 void _registerIsolate(int port_id, SendPort sp, String name) { | 320 void _registerIsolate(int port_id, SendPort sp, String name) { |
321 var service = new VMService(); | 321 var service = new VMService(); |
322 service.runningIsolates.isolateStartup(port_id, sp, name); | 322 service.runningIsolates.isolateStartup(port_id, sp, name); |
323 } | 323 } |
324 | 324 |
325 void _onStart() native "VMService_OnStart"; | 325 external void _onStart(); |
326 | 326 |
327 void _onExit() native "VMService_OnExit"; | 327 external void _onExit(); |
328 | 328 |
329 bool _vmListenStream(String streamId) native "VMService_ListenStream"; | 329 external bool _vmListenStream(String streamId); |
330 | 330 |
331 void _vmCancelStream(String streamId) native "VMService_CancelStream"; | 331 external void _vmCancelStream(String streamId); |
| 332 |
OLD | NEW |