OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 IsolateNotFound implements Exception { | 7 class IsolateNotFound implements Exception { |
8 String isolateId; | 8 String isolateId; |
9 IsolateNotFound(this.isolateId); | 9 IsolateNotFound(this.isolateId); |
10 String toString() => "IsolateNotFound: $isolateId"; | 10 String toString() => "IsolateNotFound: $isolateId"; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 }); | 117 }); |
118 } | 118 } |
119 } | 119 } |
120 | 120 |
121 class FlagsPage extends SimplePage { | 121 class FlagsPage extends SimplePage { |
122 FlagsPage(app) : super('flags', 'flag-list', app); | 122 FlagsPage(app) : super('flags', 'flag-list', app); |
123 | 123 |
124 @override | 124 @override |
125 onInstall() { | 125 onInstall() { |
126 element = new FlagListElement(app.vm, | 126 element = new FlagListElement(app.vm, |
127 app.vm.changes.map((_) => new VMUpdateEventMock(vm: app.vm)), | 127 app.events, |
128 new FlagsRepository(), | 128 new FlagsRepository(app.vm), |
129 app.notifications); | 129 app.notifications); |
130 } | 130 } |
131 | 131 |
132 void _visit(Uri uri) { | 132 void _visit(Uri uri) { |
133 super._visit(uri); | 133 super._visit(uri); |
134 } | 134 } |
135 } | 135 } |
136 | 136 |
137 class InspectPage extends SimplePage { | 137 class InspectPage extends SimplePage { |
138 InspectPage(app) : super('inspect', 'service-view', app); | 138 InspectPage(app) : super('inspect', 'service-view', app); |
139 | 139 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 bool canVisit(Uri uri) => uri.path == 'error'; | 355 bool canVisit(Uri uri) => uri.path == 'error'; |
356 } | 356 } |
357 | 357 |
358 class VMConnectPage extends Page { | 358 class VMConnectPage extends Page { |
359 VMConnectPage(app) : super(app); | 359 VMConnectPage(app) : super(app); |
360 | 360 |
361 void onInstall() { | 361 void onInstall() { |
362 if (element == null) { | 362 if (element == null) { |
363 element = new VMConnectElement( | 363 element = new VMConnectElement( |
364 ObservatoryApplication.app.targets, | 364 ObservatoryApplication.app.targets, |
365 new CrashDumpRepositoryMock( | 365 ObservatoryApplication.app.loadCrashDump, |
366 load: ObservatoryApplication.app.loadCrashDump), | |
367 ObservatoryApplication.app.notifications, | 366 ObservatoryApplication.app.notifications, |
368 queue: ObservatoryApplication.app.queue); | 367 queue: ObservatoryApplication.app.queue); |
369 } | 368 } |
370 assert(element != null); | 369 assert(element != null); |
371 } | 370 } |
372 | 371 |
373 void _visit(Uri uri) { | 372 void _visit(Uri uri) { |
374 assert(element != null); | 373 assert(element != null); |
375 assert(canVisit(uri)); | 374 assert(canVisit(uri)); |
376 } | 375 } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 assert(element != null); | 465 assert(element != null); |
467 } | 466 } |
468 | 467 |
469 void _visit(Uri uri) { | 468 void _visit(Uri uri) { |
470 assert(element != null); | 469 assert(element != null); |
471 assert(canVisit(uri)); | 470 assert(canVisit(uri)); |
472 } | 471 } |
473 | 472 |
474 bool canVisit(Uri uri) => uri.path == 'timeline'; | 473 bool canVisit(Uri uri) => uri.path == 'timeline'; |
475 } | 474 } |
OLD | NEW |