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

Side by Side Diff: runtime/observatory/lib/src/elements/class_ref.dart

Issue 2310003004: Removed polymer & mirror from Observatory (Closed)
Patch Set: Fixed crash in heap-map page 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) 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 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:async'; 6 import 'dart:async';
7 import 'package:observatory/models.dart' as M; 7 import 'package:observatory/models.dart' as M;
8 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; 8 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart';
9 import 'package:observatory/src/elements/helpers/tag.dart'; 9 import 'package:observatory/src/elements/helpers/tag.dart';
10 import 'package:observatory/src/elements/helpers/uris.dart'; 10 import 'package:observatory/src/elements/helpers/uris.dart';
11 11
12 class ClassRefElement extends HtmlElement implements Renderable { 12 class ClassRefElement extends HtmlElement implements Renderable {
13 static const tag = const Tag<ClassRefElement>('class-ref-wrapped'); 13 static const tag = const Tag<ClassRefElement>('class-ref');
14 14
15 RenderingScheduler<ClassRefElement> _r; 15 RenderingScheduler<ClassRefElement> _r;
16 16
17 Stream<RenderedEvent<ClassRefElement>> get onRendered => _r.onRendered; 17 Stream<RenderedEvent<ClassRefElement>> get onRendered => _r.onRendered;
18 18
19 M.IsolateRef _isolate; 19 M.IsolateRef _isolate;
20 M.ClassRef _class; 20 M.ClassRef _class;
21 21
22 M.IsolateRef get isolate => _isolate; 22 M.IsolateRef get isolate => _isolate;
23 M.ClassRef get cls => _class; 23 M.ClassRef get cls => _class;
(...skipping 24 matching lines...) Expand all
48 children = []; 48 children = [];
49 } 49 }
50 50
51 void render() { 51 void render() {
52 children = [ 52 children = [
53 new AnchorElement(href: Uris.inspect(_isolate, object: _class)) 53 new AnchorElement(href: Uris.inspect(_isolate, object: _class))
54 ..text = _class.name 54 ..text = _class.name
55 ]; 55 ];
56 } 56 }
57 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698