| 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 class Notification { | 7 class Notification { |
| 8 Notification.fromEvent(this.event); | 8 Notification.fromEvent(this.event); |
| 9 Notification.fromException(this.exception, this.stacktrace); | 9 Notification.fromException(this.exception, this.stacktrace); |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 void _onEvent(ServiceEvent event) { | 87 void _onEvent(ServiceEvent event) { |
| 88 switch(event.kind) { | 88 switch(event.kind) { |
| 89 case ServiceEvent.kIsolateStart: | 89 case ServiceEvent.kIsolateStart: |
| 90 case ServiceEvent.kIsolateUpdate: | 90 case ServiceEvent.kIsolateUpdate: |
| 91 case ServiceEvent.kGraph: | 91 case ServiceEvent.kGraph: |
| 92 case ServiceEvent.kBreakpointAdded: | 92 case ServiceEvent.kBreakpointAdded: |
| 93 case ServiceEvent.kBreakpointResolved: | 93 case ServiceEvent.kBreakpointResolved: |
| 94 case ServiceEvent.kBreakpointRemoved: | 94 case ServiceEvent.kBreakpointRemoved: |
| 95 case ServiceEvent.kGC: | 95 case ServiceEvent.kGC: |
| 96 case ServiceEvent.kDebuggerUpdate: |
| 96 // Ignore for now. | 97 // Ignore for now. |
| 97 break; | 98 break; |
| 98 | 99 |
| 99 case ServiceEvent.kIsolateExit: | 100 case ServiceEvent.kIsolateExit: |
| 100 case ServiceEvent.kResume: | 101 case ServiceEvent.kResume: |
| 101 removePauseEvents(event.isolate); | 102 removePauseEvents(event.isolate); |
| 102 break; | 103 break; |
| 103 | 104 |
| 104 case ServiceEvent.kPauseStart: | 105 case ServiceEvent.kPauseStart: |
| 105 case ServiceEvent.kPauseExit: | 106 case ServiceEvent.kPauseExit: |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 this.vm = new FakeVM(crashDump['result']); | 218 this.vm = new FakeVM(crashDump['result']); |
| 218 app.locationManager.go('#/vm'); | 219 app.locationManager.go('#/vm'); |
| 219 } | 220 } |
| 220 | 221 |
| 221 void handleException(e, st) { | 222 void handleException(e, st) { |
| 222 // TODO(turnidge): Report this failure via analytics. | 223 // TODO(turnidge): Report this failure via analytics. |
| 223 Logger.root.warning('Caught exception: ${e}\n${st}'); | 224 Logger.root.warning('Caught exception: ${e}\n${st}'); |
| 224 notifications.add(new Notification.fromException(e, st)); | 225 notifications.add(new Notification.fromException(e, st)); |
| 225 } | 226 } |
| 226 } | 227 } |
| OLD | NEW |