| 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 show IsolateRef, MegamorphicCacheRef; | 8 show IsolateRef, MegamorphicCacheRef; |
| 9 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; | 9 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; |
| 10 import 'package:observatory/src/elements/helpers/tag.dart'; | 10 import 'package:observatory/src/elements/helpers/tag.dart'; |
| 11 import 'package:observatory/src/elements/helpers/uris.dart'; | 11 import 'package:observatory/src/elements/helpers/uris.dart'; |
| 12 | 12 |
| 13 class MegamorphicCacheRefElement extends HtmlElement implements Renderable { | 13 class MegamorphicCacheRefElement extends HtmlElement implements Renderable { |
| 14 static const tag = | 14 static const tag = |
| 15 const Tag<MegamorphicCacheRefElement>('megamorphic-cache-ref-wrapped'); | 15 const Tag<MegamorphicCacheRefElement>('megamorphic-cache-ref'); |
| 16 | 16 |
| 17 RenderingScheduler<MegamorphicCacheRefElement> _r; | 17 RenderingScheduler<MegamorphicCacheRefElement> _r; |
| 18 | 18 |
| 19 Stream<RenderedEvent<MegamorphicCacheRefElement>> get onRendered => | 19 Stream<RenderedEvent<MegamorphicCacheRefElement>> get onRendered => |
| 20 _r.onRendered; | 20 _r.onRendered; |
| 21 | 21 |
| 22 M.IsolateRef _isolate; | 22 M.IsolateRef _isolate; |
| 23 M.MegamorphicCacheRef _cache; | 23 M.MegamorphicCacheRef _cache; |
| 24 | 24 |
| 25 M.IsolateRef get isolate => _isolate; | 25 M.IsolateRef get isolate => _isolate; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 55 children = [ | 55 children = [ |
| 56 new AnchorElement(href: Uris.inspect(_isolate, object: _cache)) | 56 new AnchorElement(href: Uris.inspect(_isolate, object: _cache)) |
| 57 ..children = [ | 57 ..children = [ |
| 58 new SpanElement()..classes = ['emphasize'] | 58 new SpanElement()..classes = ['emphasize'] |
| 59 ..text = 'MegarmorphicCache', | 59 ..text = 'MegarmorphicCache', |
| 60 new SpanElement()..text = ' (${_cache.selector})' | 60 new SpanElement()..text = ' (${_cache.selector})' |
| 61 ] | 61 ] |
| 62 ]; | 62 ]; |
| 63 } | 63 } |
| 64 } | 64 } |
| OLD | NEW |