| 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 library class_tree_element; | 5 library class_tree_element; |
| 6 | 6 |
| 7 import 'dart:html'; | 7 import 'dart:html'; |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'package:observatory/models.dart' as M; | 9 import 'package:observatory/models.dart' as M; |
| 10 import 'package:observatory/src/elements/class_ref.dart'; | 10 import 'package:observatory/src/elements/class_ref.dart'; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 navBar([ | 87 navBar([ |
| 88 new NavTopMenuElement(queue: _r.queue), | 88 new NavTopMenuElement(queue: _r.queue), |
| 89 new NavVMMenuElement(_vm, _events, queue: _r.queue), | 89 new NavVMMenuElement(_vm, _events, queue: _r.queue), |
| 90 new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), | 90 new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), |
| 91 navMenu('class hierarchy'), | 91 navMenu('class hierarchy'), |
| 92 new NavNotifyElement(_notifications, queue: _r.queue) | 92 new NavNotifyElement(_notifications, queue: _r.queue) |
| 93 ]), | 93 ]), |
| 94 new DivElement() | 94 new DivElement() |
| 95 ..classes = ['content-centered'] | 95 ..classes = ['content-centered'] |
| 96 ..children = [ | 96 ..children = [ |
| 97 new HeadingElement.h1()..text = 'Class Hierarchy', | 97 new HeadingElement.h1() |
| 98 ..text = 'Class Hierarchy (${_subclasses.length})', |
| 98 new BRElement(), | 99 new BRElement(), |
| 99 new HRElement(), | 100 new HRElement(), |
| 100 _object == null | 101 _object == null |
| 101 ? (new HeadingElement.h2()..text = 'Loading...') | 102 ? (new HeadingElement.h2()..text = 'Loading...') |
| 102 : _createTree() | 103 : _createTree() |
| 103 ] | 104 ] |
| 104 ]; | 105 ]; |
| 105 } | 106 } |
| 106 | 107 |
| 107 Element _createTree() { | 108 Element _createTree() { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 ]) | 181 ]) |
| 181 .toList(); | 182 .toList(); |
| 182 children.first.text = ' with '; | 183 children.first.text = ' with '; |
| 183 return children; | 184 return children; |
| 184 } | 185 } |
| 185 | 186 |
| 186 Iterable<M.Class> _children(M.Class cls) { | 187 Iterable<M.Class> _children(M.Class cls) { |
| 187 return _subclasses[cls.id]; | 188 return _subclasses[cls.id]; |
| 188 } | 189 } |
| 189 } | 190 } |
| OLD | NEW |