| 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 service_object_view_element; | 5 library service_object_view_element; |
| 6 | 6 |
| 7 import 'dart:html'; | 7 import 'dart:html'; |
| 8 import 'package:logging/logging.dart'; | 8 import 'package:logging/logging.dart'; |
| 9 import 'package:observatory/service.dart'; | 9 import 'package:observatory/service.dart'; |
| 10 import 'package:observatory/tracer.dart'; | 10 import 'package:observatory/tracer.dart'; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 return element; | 141 return element; |
| 142 case 'ServiceException': | 142 case 'ServiceException': |
| 143 ServiceExceptionViewElement element = | 143 ServiceExceptionViewElement element = |
| 144 new Element.tag('service-exception-view'); | 144 new Element.tag('service-exception-view'); |
| 145 element.exception = object; | 145 element.exception = object; |
| 146 return element; | 146 return element; |
| 147 case 'Script': | 147 case 'Script': |
| 148 ScriptViewElement element = new Element.tag('script-view'); | 148 ScriptViewElement element = new Element.tag('script-view'); |
| 149 element.script = object; | 149 element.script = object; |
| 150 return element; | 150 return element; |
| 151 case 'StackTrace': | |
| 152 StackTraceElement element = new Element.tag('stack-trace'); | |
| 153 element.trace = object; | |
| 154 return element; | |
| 155 case 'VM': | 151 case 'VM': |
| 156 VMViewElement element = new Element.tag('vm-view'); | 152 VMViewElement element = new Element.tag('vm-view'); |
| 157 element.vm = object; | 153 element.vm = object; |
| 158 return element; | 154 return element; |
| 159 default: | 155 default: |
| 160 if (object.isInstance || | 156 if (object.isInstance || |
| 161 object.isSentinel) { // TODO(rmacnak): Separate this out. | 157 object.isSentinel) { // TODO(rmacnak): Separate this out. |
| 162 InstanceViewElement element = new Element.tag('instance-view'); | 158 InstanceViewElement element = new Element.tag('instance-view'); |
| 163 element.instance = object; | 159 element.instance = object; |
| 164 return element; | 160 return element; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 230 |
| 235 dynamic expander() { | 231 dynamic expander() { |
| 236 return expandEvent; | 232 return expandEvent; |
| 237 } | 233 } |
| 238 | 234 |
| 239 void expandEvent(bool exp, var done) { | 235 void expandEvent(bool exp, var done) { |
| 240 expand = exp; | 236 expand = exp; |
| 241 done(); | 237 done(); |
| 242 } | 238 } |
| 243 } | 239 } |
| OLD | NEW |