Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: sdk/lib/vmservice/vmservice.dart

Issue 1396603002: Properly split dart:_vmservice across sdk and runtime (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/vmservice/running_isolates.dart ('k') | sdk/lib/vmservice/vmservice_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/vmservice/vmservice.dart
diff --git a/runtime/lib/vmservice/vmservice.dart b/sdk/lib/vmservice/vmservice.dart
similarity index 96%
rename from runtime/lib/vmservice/vmservice.dart
rename to sdk/lib/vmservice/vmservice.dart
index 3c66673731d15fd3ff931823071355d469643396..54388cdc7f3602a7d59292a9d2091e5f03af7433 100644
--- a/runtime/lib/vmservice/vmservice.dart
+++ b/sdk/lib/vmservice/vmservice.dart
@@ -1,8 +1,8 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library vmservice;
+library dart._vmservice;
import 'dart:async';
import 'dart:convert';
@@ -322,10 +322,11 @@ void _registerIsolate(int port_id, SendPort sp, String name) {
service.runningIsolates.isolateStartup(port_id, sp, name);
}
-void _onStart() native "VMService_OnStart";
+external void _onStart();
-void _onExit() native "VMService_OnExit";
+external void _onExit();
-bool _vmListenStream(String streamId) native "VMService_ListenStream";
+external bool _vmListenStream(String streamId);
+
+external void _vmCancelStream(String streamId);
-void _vmCancelStream(String streamId) native "VMService_CancelStream";
« no previous file with comments | « sdk/lib/vmservice/running_isolates.dart ('k') | sdk/lib/vmservice/vmservice_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698