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 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 import 'package:observatory/src/elements/instance_ref.dart'; | 11 import 'package:observatory/src/elements/instance_ref.dart'; |
12 | 12 |
13 class FieldRefElement extends HtmlElement implements Renderable { | 13 class FieldRefElement extends HtmlElement implements Renderable { |
14 static const tag = const Tag<FieldRefElement>('field-ref-wrapped', | 14 static const tag = const Tag<FieldRefElement>('field-ref', |
15 dependencies: const [ | 15 dependencies: const [ |
16 InstanceRefElement.tag | 16 InstanceRefElement.tag |
17 ]); | 17 ]); |
18 | 18 |
19 RenderingScheduler<FieldRefElement> _r; | 19 RenderingScheduler<FieldRefElement> _r; |
20 | 20 |
21 Stream<RenderedEvent<FieldRefElement>> get onRendered => _r.onRendered; | 21 Stream<RenderedEvent<FieldRefElement>> get onRendered => _r.onRendered; |
22 | 22 |
23 M.IsolateRef _isolate; | 23 M.IsolateRef _isolate; |
24 M.FieldRef _field; | 24 M.FieldRef _field; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 new SpanElement()..text = header, | 82 new SpanElement()..text = header, |
83 new InstanceRefElement(_isolate, _field.declaredType, _instances, | 83 new InstanceRefElement(_isolate, _field.declaredType, _instances, |
84 queue: _r.queue), | 84 queue: _r.queue), |
85 new SpanElement()..text = ' ', | 85 new SpanElement()..text = ' ', |
86 new AnchorElement(href: Uris.inspect(_isolate, object: _field)) | 86 new AnchorElement(href: Uris.inspect(_isolate, object: _field)) |
87 ..text = _field.name | 87 ..text = _field.name |
88 ]; | 88 ]; |
89 } | 89 } |
90 } | 90 } |
91 } | 91 } |
OLD | NEW |