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/any_ref.dart'; | 10 import 'package:observatory/src/elements/helpers/any_ref.dart'; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 new ObjectCommonElement(_isolate, _context, _retainedSizes, | 136 new ObjectCommonElement(_isolate, _context, _retainedSizes, |
137 _reachableSizes, _references, _retainingPaths, | 137 _reachableSizes, _references, _retainingPaths, |
138 _instances, queue: _r.queue) | 138 _instances, queue: _r.queue) |
139 ] | 139 ] |
140 ]; | 140 ]; |
141 if (_context.parentContext != null) { | 141 if (_context.parentContext != null) { |
142 content.addAll([ | 142 content.addAll([ |
143 new BRElement(), | 143 new BRElement(), |
144 new DivElement()..classes = const ['content-centered-big'] | 144 new DivElement()..classes = const ['content-centered-big'] |
145 ..children = [ | 145 ..children = [ |
146 new DivElement()..classes = ['memberList'] | 146 new DivElement()..classes = const ['memberList'] |
147 ..children = [ | 147 ..children = [ |
148 new DivElement()..classes = ['memberItem'] | 148 new DivElement()..classes = const ['memberItem'] |
149 ..children = [ | 149 ..children = [ |
150 new DivElement()..classes = ['memberName'] | 150 new DivElement()..classes = const ['memberName'] |
151 ..text = 'parent context', | 151 ..text = 'parent context', |
152 new DivElement()..classes = ['memberName'] | 152 new DivElement()..classes = const ['memberName'] |
153 ..children = [ | 153 ..children = [ |
154 new ContextRefElement(_isolate, _context.parentContext, | 154 new ContextRefElement(_isolate, _context.parentContext, |
155 queue: _r.queue) | 155 queue: _r.queue) |
156 ] | 156 ] |
157 ] | 157 ] |
158 ] | 158 ] |
159 ] | 159 ] |
160 ]); | 160 ]); |
161 } | 161 } |
162 content.add(new HRElement()); | 162 content.add(new HRElement()); |
163 if (_context.variables.isNotEmpty) { | 163 if (_context.variables.isNotEmpty) { |
164 int index = 0; | 164 int index = 0; |
165 content.addAll([ | 165 content.addAll([ |
166 new DivElement()..classes = const ['content-centered-big'] | 166 new DivElement()..classes = const ['content-centered-big'] |
167 ..children = [ | 167 ..children = [ |
168 new SpanElement()..text = 'Variables ', | 168 new SpanElement()..text = 'Variables ', |
169 new CurlyBlockElement(expanded: _context.variables.length > 8, | 169 new CurlyBlockElement(expanded: _context.variables.length > 8, |
170 queue: _r.queue) | 170 queue: _r.queue) |
171 ..children = [ | 171 ..children = [ |
172 new DivElement()..classes = ['memberList'] | 172 new DivElement()..classes = const ['memberList'] |
173 ..children = _context.variables.map((variable) | 173 ..children = _context.variables.map((variable) |
174 => new DivElement()..classes = ['memberItem'] | 174 => new DivElement()..classes = const ['memberItem'] |
175 ..children = [ | 175 ..children = [ |
176 new DivElement()..classes = ['memberName'] | 176 new DivElement()..classes = const ['memberName'] |
177 ..text = '[ ${++index} ]', | 177 ..text = '[ ${++index} ]', |
178 new DivElement()..classes = ['memberName'] | 178 new DivElement()..classes = const ['memberName'] |
179 ..children = [ | 179 ..children = [ |
180 anyRef(_isolate, variable.value, _instances, | 180 anyRef(_isolate, variable.value, _instances, |
181 queue: _r.queue) | 181 queue: _r.queue) |
182 ] | 182 ] |
183 ]).toList() | 183 ]).toList() |
184 ] | 184 ] |
185 ] | 185 ] |
186 ]); | 186 ]); |
187 } | 187 } |
188 content.add(new DivElement()..classes = const ['content-centered-big'] | 188 content.add(new DivElement()..classes = const ['content-centered-big'] |
189 ..children = [new ViewFooterElement(queue: _r.queue)]); | 189 ..children = [new ViewFooterElement(queue: _r.queue)]); |
190 children = content; | 190 children = content; |
191 } | 191 } |
192 } | 192 } |
OLD | NEW |