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:async'; | 5 import 'dart:async'; |
6 import 'dart:html'; | 6 import 'dart:html'; |
7 import 'package:observatory/models.dart' as M; | 7 import 'package:observatory/models.dart' as M; |
8 import 'package:observatory/src/elements/context_ref.dart'; | 8 import 'package:observatory/src/elements/context_ref.dart'; |
9 import 'package:observatory/src/elements/curly_block.dart'; | 9 import 'package:observatory/src/elements/curly_block.dart'; |
10 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; | 10 import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), | 118 new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), |
119 new NavMenuElement('object', last: true, queue: _r.queue), | 119 new NavMenuElement('object', last: true, queue: _r.queue), |
120 new NavRefreshElement(queue: _r.queue) | 120 new NavRefreshElement(queue: _r.queue) |
121 ..onRefresh.listen((e) async { | 121 ..onRefresh.listen((e) async { |
122 e.element.disabled = true; | 122 e.element.disabled = true; |
123 _object = await _objects.get(_isolate, _object.id); | 123 _object = await _objects.get(_isolate, _object.id); |
124 _r.dirty(); | 124 _r.dirty(); |
125 }), | 125 }), |
126 new NavNotifyElement(_notifications, queue: _r.queue) | 126 new NavNotifyElement(_notifications, queue: _r.queue) |
127 ], | 127 ], |
128 new DivElement()..classes = const ['content-centered-big'] | 128 new DivElement()..classes = ['content-centered-big'] |
129 ..children = [ | 129 ..children = [ |
130 new HeadingElement.h2()..text = 'Object', | 130 new HeadingElement.h2()..text = 'Object', |
131 new HRElement(), | 131 new HRElement(), |
132 new ObjectCommonElement(_isolate, _object, _retainedSizes, | 132 new ObjectCommonElement(_isolate, _object, _retainedSizes, |
133 _reachableSizes, _references, _retainingPaths, | 133 _reachableSizes, _references, _retainingPaths, |
134 _instances, queue: _r.queue), | 134 _instances, queue: _r.queue), |
135 new HRElement(), | 135 new HRElement(), |
136 new ViewFooterElement(queue: _r.queue) | 136 new ViewFooterElement(queue: _r.queue) |
137 ] | 137 ] |
138 ]; | 138 ]; |
139 } | 139 } |
140 } | 140 } |
OLD | NEW |