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

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

Issue 558703005: Do not navigate to vm-connect page upon disconnect (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/vmservice/observatory/lib/src/elements/nav_bar.html ('k') | no next file » | 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 /// A [ServiceObject] is an object known to the VM service and is tied 7 /// A [ServiceObject] is an object known to the VM service and is tied
8 /// to an owning [Isolate]. 8 /// to an owning [Isolate].
9 abstract class ServiceObject extends Observable { 9 abstract class ServiceObject extends Observable {
10 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { 10 static int LexicalSortName(ServiceObject o1, ServiceObject o2) {
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 vmName = name; 1296 vmName = name;
1297 } 1297 }
1298 1298
1299 String toString() => 'ServiceException($message)'; 1299 String toString() => 'ServiceException($message)';
1300 } 1300 }
1301 1301
1302 /// A [ServiceEvent] is an asynchronous event notification from the vm. 1302 /// A [ServiceEvent] is an asynchronous event notification from the vm.
1303 class ServiceEvent extends ServiceObject { 1303 class ServiceEvent extends ServiceObject {
1304 ServiceEvent._empty(ServiceObjectOwner owner) : super._empty(owner); 1304 ServiceEvent._empty(ServiceObjectOwner owner) : super._empty(owner);
1305 1305
1306 ServiceEvent.vmDisconencted() : super._empty(null) {
1307 eventType = 'VMDisconnected';
1308 }
1309
1306 @observable String eventType; 1310 @observable String eventType;
1307 @observable ServiceMap breakpoint; 1311 @observable ServiceMap breakpoint;
1308 @observable ServiceMap exception; 1312 @observable ServiceMap exception;
1309 @observable ByteData data; 1313 @observable ByteData data;
1310 1314
1311 void _update(ObservableMap map, bool mapIsRef) { 1315 void _update(ObservableMap map, bool mapIsRef) {
1312 _loaded = true; 1316 _loaded = true;
1313 _upgradeCollection(map, owner); 1317 _upgradeCollection(map, owner);
1314 eventType = map['eventType']; 1318 eventType = map['eventType'];
1315 name = 'ServiceEvent $eventType'; 1319 name = 'ServiceEvent $eventType';
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
2721 var v = list[i]; 2725 var v = list[i];
2722 if ((v is ObservableMap) && _isServiceMap(v)) { 2726 if ((v is ObservableMap) && _isServiceMap(v)) {
2723 list[i] = owner.getFromMap(v); 2727 list[i] = owner.getFromMap(v);
2724 } else if (v is ObservableList) { 2728 } else if (v is ObservableList) {
2725 _upgradeObservableList(v, owner); 2729 _upgradeObservableList(v, owner);
2726 } else if (v is ObservableMap) { 2730 } else if (v is ObservableMap) {
2727 _upgradeObservableMap(v, owner); 2731 _upgradeObservableMap(v, owner);
2728 } 2732 }
2729 } 2733 }
2730 } 2734 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/observatory/lib/src/elements/nav_bar.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698