| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 megamorphiccache_view; | 5 library megamorphiccache_view; |
| 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/context_ref.dart'; | 10 import 'package:observatory/src/elements/context_ref.dart'; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), | 124 new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), |
| 125 new NavMenuElement('object', last: true, queue: _r.queue), | 125 new NavMenuElement('object', last: true, queue: _r.queue), |
| 126 new NavRefreshElement(queue: _r.queue) | 126 new NavRefreshElement(queue: _r.queue) |
| 127 ..onRefresh.listen((e) async { | 127 ..onRefresh.listen((e) async { |
| 128 e.element.disabled = true; | 128 e.element.disabled = true; |
| 129 _cache = await _caches.get(_isolate, _cache.id); | 129 _cache = await _caches.get(_isolate, _cache.id); |
| 130 _r.dirty(); | 130 _r.dirty(); |
| 131 }), | 131 }), |
| 132 new NavNotifyElement(_notifications, queue: _r.queue) | 132 new NavNotifyElement(_notifications, queue: _r.queue) |
| 133 ], | 133 ], |
| 134 new DivElement()..classes = const ['content-centered-big'] | 134 new DivElement()..classes = ['content-centered-big'] |
| 135 ..children = [ | 135 ..children = [ |
| 136 new HeadingElement.h2()..text = 'Megamorphic Cache', | 136 new HeadingElement.h2()..text = 'Megamorphic Cache', |
| 137 new HRElement(), | 137 new HRElement(), |
| 138 new ObjectCommonElement(_isolate, _cache, _retainedSizes, | 138 new ObjectCommonElement(_isolate, _cache, _retainedSizes, |
| 139 _reachableSizes, _references, _retainingPaths, | 139 _reachableSizes, _references, _retainingPaths, |
| 140 _instances, queue: _r.queue), | 140 _instances, queue: _r.queue), |
| 141 new BRElement(), | 141 new BRElement(), |
| 142 new DivElement()..classes = ['memberList'] | 142 new DivElement()..classes = ['memberList'] |
| 143 ..children = [ | 143 ..children = [ |
| 144 new DivElement()..classes = ['memberItem'] | 144 new DivElement()..classes = ['memberItem'] |
| (...skipping 30 matching lines...) Expand all Loading... |
| 175 queue: _r.queue) | 175 queue: _r.queue) |
| 176 ] | 176 ] |
| 177 ] | 177 ] |
| 178 ], | 178 ], |
| 179 new HRElement(), | 179 new HRElement(), |
| 180 new ViewFooterElement(queue: _r.queue) | 180 new ViewFooterElement(queue: _r.queue) |
| 181 ] | 181 ] |
| 182 ]; | 182 ]; |
| 183 } | 183 } |
| 184 } | 184 } |
| OLD | NEW |