Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: runtime/observatory/lib/src/app/page.dart

Issue 2286503002: Converted Observatory error-view element (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 AllocationProfileRepository _allocationProfileRepository 7 AllocationProfileRepository _allocationProfileRepository
8 = new AllocationProfileRepository(); 8 = new AllocationProfileRepository();
9 ContextRepository _contextRepository = new ContextRepository(); 9 ContextRepository _contextRepository = new ContextRepository();
10 HeapSnapshotRepository _heapSnapshotRepository 10 HeapSnapshotRepository _heapSnapshotRepository
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 new ContextViewElement(app.vm, obj.isolate, obj, app.events, 187 new ContextViewElement(app.vm, obj.isolate, obj, app.events,
188 app.notifications, 188 app.notifications,
189 _contextRepository, 189 _contextRepository,
190 _retainedSizeRepository, 190 _retainedSizeRepository,
191 _reachableSizeRepository, 191 _reachableSizeRepository,
192 _inboundReferencesRepository, 192 _inboundReferencesRepository,
193 _retainingPathRepository, 193 _retainingPathRepository,
194 _instanceRepository, 194 _instanceRepository,
195 queue: app.queue) 195 queue: app.queue)
196 ]; 196 ];
197 } else if (obj is DartError) {
198 container.children = [
199 new ErrorViewElement(app.notifications, obj, queue: app.queue)
200 ];
197 } else if (obj is ICData) { 201 } else if (obj is ICData) {
198 container.children = [ 202 container.children = [
199 new ICDataViewElement(app.vm, obj.isolate, obj, app.events, 203 new ICDataViewElement(app.vm, obj.isolate, obj, app.events,
200 app.notifications, 204 app.notifications,
201 _icdataRepository, 205 _icdataRepository,
202 _retainedSizeRepository, 206 _retainedSizeRepository,
203 _reachableSizeRepository, 207 _reachableSizeRepository,
204 _inboundReferencesRepository, 208 _inboundReferencesRepository,
205 _retainingPathRepository, 209 _retainingPathRepository,
206 _instanceRepository, 210 _instanceRepository,
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 assert(element != null); 581 assert(element != null);
578 } 582 }
579 583
580 void _visit(Uri uri) { 584 void _visit(Uri uri) {
581 assert(element != null); 585 assert(element != null);
582 assert(canVisit(uri)); 586 assert(canVisit(uri));
583 } 587 }
584 588
585 bool canVisit(Uri uri) => uri.path == 'timeline'; 589 bool canVisit(Uri uri) => uri.path == 'timeline';
586 } 590 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698