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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 case ServiceEvent.kIsolateStart: | 94 case ServiceEvent.kIsolateStart: |
95 case ServiceEvent.kIsolateRunnable: | 95 case ServiceEvent.kIsolateRunnable: |
96 case ServiceEvent.kIsolateUpdate: | 96 case ServiceEvent.kIsolateUpdate: |
97 case ServiceEvent.kBreakpointAdded: | 97 case ServiceEvent.kBreakpointAdded: |
98 case ServiceEvent.kBreakpointResolved: | 98 case ServiceEvent.kBreakpointResolved: |
99 case ServiceEvent.kBreakpointRemoved: | 99 case ServiceEvent.kBreakpointRemoved: |
100 case ServiceEvent.kDebuggerSettingsUpdate: | 100 case ServiceEvent.kDebuggerSettingsUpdate: |
101 // Ignore for now. | 101 // Ignore for now. |
102 break; | 102 break; |
103 | 103 |
| 104 case ServiceEvent.kIsolateReload: |
| 105 notifications.add(new Notification.fromEvent(event)); |
| 106 break; |
| 107 |
104 case ServiceEvent.kIsolateExit: | 108 case ServiceEvent.kIsolateExit: |
105 case ServiceEvent.kResume: | 109 case ServiceEvent.kResume: |
106 removePauseEvents(event.isolate); | 110 removePauseEvents(event.isolate); |
107 break; | 111 break; |
108 | 112 |
109 case ServiceEvent.kPauseStart: | 113 case ServiceEvent.kPauseStart: |
110 case ServiceEvent.kPauseExit: | 114 case ServiceEvent.kPauseExit: |
111 case ServiceEvent.kPauseBreakpoint: | 115 case ServiceEvent.kPauseBreakpoint: |
112 case ServiceEvent.kPauseInterrupted: | 116 case ServiceEvent.kPauseInterrupted: |
113 case ServiceEvent.kPauseException: | 117 case ServiceEvent.kPauseException: |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 } | 240 } |
237 | 241 |
238 // TODO(turnidge): Report this failure via analytics. | 242 // TODO(turnidge): Report this failure via analytics. |
239 Logger.root.warning('Caught exception: ${e}\n${st}'); | 243 Logger.root.warning('Caught exception: ${e}\n${st}'); |
240 notifications.add(new Notification.fromException(e, st)); | 244 notifications.add(new Notification.fromException(e, st)); |
241 } | 245 } |
242 | 246 |
243 // This map keeps track of which curly-blocks have been expanded by the user. | 247 // This map keeps track of which curly-blocks have been expanded by the user. |
244 Map<String,bool> expansions = {}; | 248 Map<String,bool> expansions = {}; |
245 } | 249 } |
OLD | NEW |