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

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

Issue 2359553002: Misc Observatory tweaks. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/eval_box.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/eval_box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698