| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 loadCrashDump(Map crashDump) { | 219 loadCrashDump(Map crashDump) { |
| 220 this.vm = new FakeVM(crashDump['result']); | 220 this.vm = new FakeVM(crashDump['result']); |
| 221 app.locationManager.go('#/vm'); | 221 app.locationManager.go('#/vm'); |
| 222 } | 222 } |
| 223 | 223 |
| 224 void handleException(e, st) { | 224 void handleException(e, st) { |
| 225 // TODO(turnidge): Report this failure via analytics. | 225 // TODO(turnidge): Report this failure via analytics. |
| 226 Logger.root.warning('Caught exception: ${e}\n${st}'); | 226 Logger.root.warning('Caught exception: ${e}\n${st}'); |
| 227 notifications.add(new Notification.fromException(e, st)); | 227 notifications.add(new Notification.fromException(e, st)); |
| 228 } | 228 } |
| 229 |
| 230 // This map keeps track of which curly-blocks have been expanded by the user. |
| 231 Map<String,bool> expansions = {}; |
| 229 } | 232 } |
| OLD | NEW |