| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // reasonable way. | 81 // reasonable way. |
| 82 case 'Type': | 82 case 'Type': |
| 83 case 'Array': | 83 case 'Array': |
| 84 case 'Bool': | 84 case 'Bool': |
| 85 case 'Closure': | 85 case 'Closure': |
| 86 case 'Double': | 86 case 'Double': |
| 87 case 'GrowableObjectArray': | 87 case 'GrowableObjectArray': |
| 88 case 'Instance': | 88 case 'Instance': |
| 89 case 'Smi': | 89 case 'Smi': |
| 90 case 'Mint': | 90 case 'Mint': |
| 91 case 'Null': |
| 91 case 'Bigint': | 92 case 'Bigint': |
| 92 case 'String': | 93 case 'String': |
| 93 InstanceViewElement element = new Element.tag('instance-view'); | 94 InstanceViewElement element = new Element.tag('instance-view'); |
| 94 element.instance = object; | 95 element.instance = object; |
| 95 return element; | 96 return element; |
| 96 case 'IO': | 97 case 'IO': |
| 97 IOViewElement element = new Element.tag('io-view'); | 98 IOViewElement element = new Element.tag('io-view'); |
| 98 element.io = object; | 99 element.io = object; |
| 99 return element; | 100 return element; |
| 100 case 'HttpServerList': | 101 case 'HttpServerList': |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 255 |
| 255 dynamic expander() { | 256 dynamic expander() { |
| 256 return expandEvent; | 257 return expandEvent; |
| 257 } | 258 } |
| 258 | 259 |
| 259 void expandEvent(bool exp, var done) { | 260 void expandEvent(bool exp, var done) { |
| 260 expand = exp; | 261 expand = exp; |
| 261 done(); | 262 done(); |
| 262 } | 263 } |
| 263 } | 264 } |
| OLD | NEW |