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 library vm_view_element; | 5 library vm_view_element; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:html'; | 8 import 'dart:html'; |
9 import 'package:observatory/models.dart' as M; | 9 import 'package:observatory/models.dart' as M; |
10 import 'package:observatory/src/elements/helpers/nav_bar.dart'; | 10 import 'package:observatory/src/elements/helpers/nav_bar.dart'; |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 new SpanElement()..text = 'see ', | 223 new SpanElement()..text = 'see ', |
224 new AnchorElement(href: Uris.flags())..text = 'flags' | 224 new AnchorElement(href: Uris.flags())..text = 'flags' |
225 ], | 225 ], |
226 new DivElement() | 226 new DivElement() |
227 ..classes = ['memberValue'] | 227 ..classes = ['memberValue'] |
228 ..children = [ | 228 ..children = [ |
229 new SpanElement()..text = 'view ', | 229 new SpanElement()..text = 'view ', |
230 new AnchorElement(href: Uris.timeline()) | 230 new AnchorElement(href: Uris.timeline()) |
231 ..text = 'timeline' | 231 ..text = 'timeline' |
232 ] | 232 ] |
| 233 ], |
| 234 new DivElement() |
| 235 ..classes = ['memberItem'] |
| 236 ..children = [ |
| 237 new DivElement() |
| 238 ..classes = ['memberName'] |
| 239 ..children = [ |
| 240 new SpanElement()..text = 'view ', |
| 241 new AnchorElement(href: Uris.nativeMemory()) |
| 242 ..text = 'native memory profile' |
| 243 ] |
233 ] | 244 ] |
234 ], | 245 ], |
235 new BRElement(), | 246 new BRElement(), |
236 new HeadingElement.h1()..text = 'Isolates (${isolates.length})', | 247 new HeadingElement.h1()..text = 'Isolates (${isolates.length})', |
237 new HRElement(), | 248 new HRElement(), |
238 new UListElement() | 249 new UListElement() |
239 ..classes = ['list-group'] | 250 ..classes = ['list-group'] |
240 ..children = isolates | 251 ..children = isolates |
241 .expand((i) => [ | 252 .expand((i) => [ |
242 new LIElement() | 253 new LIElement() |
243 ..classes = ['list-group-item'] | 254 ..classes = ['list-group-item'] |
244 ..children = [ | 255 ..children = [ |
245 new IsolateSummaryElement( | 256 new IsolateSummaryElement( |
246 i, _isolates, _events, _scripts, | 257 i, _isolates, _events, _scripts, |
247 queue: _r.queue) | 258 queue: _r.queue) |
248 ], | 259 ], |
249 new HRElement() | 260 new HRElement() |
250 ]) | 261 ]) |
251 .toList(), | 262 .toList(), |
252 new ViewFooterElement(queue: _r.queue) | 263 new ViewFooterElement(queue: _r.queue) |
253 ] | 264 ] |
254 ]; | 265 ]; |
255 } | 266 } |
256 } | 267 } |
OLD | NEW |