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

Side by Side Diff: runtime/observatory/lib/src/app/application.dart

Issue 1007863003: Allow Observatory debugger to switch isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | « no previous file | runtime/observatory/lib/src/app/page.dart » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 app; 5 part of app;
6 6
7 /// The observatory application. Instances of this are created and owned 7 /// The observatory application. Instances of this are created and owned
8 /// by the observatory_application custom element. 8 /// by the observatory_application custom element.
9 class ObservatoryApplication extends Observable { 9 class ObservatoryApplication extends Observable {
10 static ObservatoryApplication app; 10 static ObservatoryApplication app;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 notifications.removeWhere((oldEvent) { 61 notifications.removeWhere((oldEvent) {
62 return (oldEvent.isolate == isolate && 62 return (oldEvent.isolate == isolate &&
63 isPauseEvent(oldEvent)); 63 isPauseEvent(oldEvent));
64 }); 64 });
65 } 65 }
66 66
67 void _onEvent(ServiceEvent event) { 67 void _onEvent(ServiceEvent event) {
68 switch(event.eventType) { 68 switch(event.eventType) {
69 case ServiceEvent.kIsolateStart: 69 case ServiceEvent.kIsolateStart:
70 case ServiceEvent.kIsolateUpdate:
70 case ServiceEvent.kGraph: 71 case ServiceEvent.kGraph:
71 case ServiceEvent.kBreakpointAdded: 72 case ServiceEvent.kBreakpointAdded:
72 case ServiceEvent.kBreakpointResolved: 73 case ServiceEvent.kBreakpointResolved:
73 case ServiceEvent.kBreakpointRemoved: 74 case ServiceEvent.kBreakpointRemoved:
74 case ServiceEvent.kGC: 75 case ServiceEvent.kGC:
75 // Ignore for now. 76 // Ignore for now.
76 break; 77 break;
77 78
78 case ServiceEvent.kIsolateExit: 79 case ServiceEvent.kIsolateExit:
79 case ServiceEvent.kResume: 80 case ServiceEvent.kResume:
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 216
216 _vmDisconnected(VM vm) { 217 _vmDisconnected(VM vm) {
217 if (this.vm != vm) { 218 if (this.vm != vm) {
218 // This disconnect event occured *after* a new VM was installed. 219 // This disconnect event occured *after* a new VM was installed.
219 return; 220 return;
220 } 221 }
221 this.vm = null; 222 this.vm = null;
222 notifications.add(new ServiceEvent.vmDisconencted()); 223 notifications.add(new ServiceEvent.vmDisconencted());
223 } 224 }
224 } 225 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/app/page.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698