OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |