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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 1379163002: Some changes to service protocol before we land 1.13. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: CHANGELOG 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 unified diff | Download patch
« no previous file with comments | « CHANGELOG.md ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 service; 5 part of service;
6 6
7 /// Helper function for canceling a Future<StreamSubscription>. 7 /// Helper function for canceling a Future<StreamSubscription>.
8 Future cancelFutureSubscription( 8 Future cancelFutureSubscription(
9 Future<StreamSubscription> subscriptionFuture) async { 9 Future<StreamSubscription> subscriptionFuture) async {
10 if (subscriptionFuture != null) { 10 if (subscriptionFuture != null) {
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 1510
1511 Future<ServiceObject> addBreakpointByScriptUri( 1511 Future<ServiceObject> addBreakpointByScriptUri(
1512 String uri, int line, [int col]) { 1512 String uri, int line, [int col]) {
1513 Map params = { 1513 Map params = {
1514 'scriptUri': uri, 1514 'scriptUri': uri,
1515 'line': line.toString(), 1515 'line': line.toString(),
1516 }; 1516 };
1517 if (col != null) { 1517 if (col != null) {
1518 params['column'] = col.toString(); 1518 params['column'] = col.toString();
1519 } 1519 }
1520 return invokeRpc('addBreakpoint', params); 1520 return invokeRpc('addBreakpointWithScriptUri', params);
1521 } 1521 }
1522 1522
1523 Future<ServiceObject> addBreakpointAtEntry(ServiceFunction function) { 1523 Future<ServiceObject> addBreakpointAtEntry(ServiceFunction function) {
1524 return invokeRpc('addBreakpointAtEntry', 1524 return invokeRpc('addBreakpointAtEntry',
1525 { 'functionId': function.id }); 1525 { 'functionId': function.id });
1526 } 1526 }
1527 1527
1528 Future<ServiceObject> addBreakOnActivation(Instance closure) { 1528 Future<ServiceObject> addBreakOnActivation(Instance closure) {
1529 return invokeRpc('_addBreakpointAtActivation', 1529 return invokeRpc('_addBreakpointAtActivation',
1530 { 'objectId': closure.id }); 1530 { 'objectId': closure.id });
(...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after
3928 var v = list[i]; 3928 var v = list[i];
3929 if ((v is ObservableMap) && _isServiceMap(v)) { 3929 if ((v is ObservableMap) && _isServiceMap(v)) {
3930 list[i] = owner.getFromMap(v); 3930 list[i] = owner.getFromMap(v);
3931 } else if (v is ObservableList) { 3931 } else if (v is ObservableList) {
3932 _upgradeObservableList(v, owner); 3932 _upgradeObservableList(v, owner);
3933 } else if (v is ObservableMap) { 3933 } else if (v is ObservableMap) {
3934 _upgradeObservableMap(v, owner); 3934 _upgradeObservableMap(v, owner);
3935 } 3935 }
3936 } 3936 }
3937 } 3937 }
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698