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/elements.dart'; | 10 import 'package:observatory/elements.dart'; |
(...skipping 26 matching lines...) Expand all Loading... |
37 element.code = object; | 37 element.code = object; |
38 return element; | 38 return element; |
39 case 'Error': | 39 case 'Error': |
40 ErrorViewElement element = new Element.tag('error-view'); | 40 ErrorViewElement element = new Element.tag('error-view'); |
41 element.error = object; | 41 element.error = object; |
42 return element; | 42 return element; |
43 case 'Field': | 43 case 'Field': |
44 FieldViewElement element = new Element.tag('field-view'); | 44 FieldViewElement element = new Element.tag('field-view'); |
45 element.field = object; | 45 element.field = object; |
46 return element; | 46 return element; |
| 47 case 'FlagList': |
| 48 FlagListElement element = new Element.tag('flag-list'); |
| 49 element.flagList = object; |
| 50 return element; |
47 case 'Function': | 51 case 'Function': |
48 FunctionViewElement element = new Element.tag('function-view'); | 52 FunctionViewElement element = new Element.tag('function-view'); |
49 element.function = object; | 53 element.function = object; |
50 return element; | 54 return element; |
51 case 'HeapMap': | 55 case 'HeapMap': |
52 HeapMapElement element = new Element.tag('heap-map'); | 56 HeapMapElement element = new Element.tag('heap-map'); |
53 element.fragmentation = object; | 57 element.fragmentation = object; |
54 return element; | 58 return element; |
55 case 'LibraryPrefix': | 59 case 'LibraryPrefix': |
56 case 'TypeRef': | 60 case 'TypeRef': |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 var type = object.serviceType; | 142 var type = object.serviceType; |
139 var element = _constructElementForObject(); | 143 var element = _constructElementForObject(); |
140 if (element == null) { | 144 if (element == null) { |
141 Logger.root.info('Unable to find a view element for \'${type}\''); | 145 Logger.root.info('Unable to find a view element for \'${type}\''); |
142 return; | 146 return; |
143 } | 147 } |
144 children.add(element); | 148 children.add(element); |
145 Logger.root.info('Viewing object of \'${type}\''); | 149 Logger.root.info('Viewing object of \'${type}\''); |
146 } | 150 } |
147 } | 151 } |
OLD | NEW |