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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 element.fragmentation = object; | 53 element.fragmentation = object; |
54 return element; | 54 return element; |
55 case 'Array': | 55 case 'Array': |
56 case 'Bool': | 56 case 'Bool': |
57 case 'Closure': | 57 case 'Closure': |
58 case 'Double': | 58 case 'Double': |
59 case 'GrowableObjectArray': | 59 case 'GrowableObjectArray': |
60 case 'Instance': | 60 case 'Instance': |
61 case 'Smi': | 61 case 'Smi': |
62 case 'String': | 62 case 'String': |
| 63 case 'Type': |
63 InstanceViewElement element = new Element.tag('instance-view'); | 64 InstanceViewElement element = new Element.tag('instance-view'); |
64 element.instance = object; | 65 element.instance = object; |
65 return element; | 66 return element; |
66 case 'Isolate': | 67 case 'Isolate': |
67 IsolateViewElement element = new Element.tag('isolate-view'); | 68 IsolateViewElement element = new Element.tag('isolate-view'); |
68 element.isolate = object; | 69 element.isolate = object; |
69 return element; | 70 return element; |
70 case 'Library': | 71 case 'Library': |
71 LibraryViewElement element = new Element.tag('library-view'); | 72 LibraryViewElement element = new Element.tag('library-view'); |
72 element.library = object; | 73 element.library = object; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 var type = object.serviceType; | 113 var type = object.serviceType; |
113 var element = _constructElementForObject(); | 114 var element = _constructElementForObject(); |
114 if (element == null) { | 115 if (element == null) { |
115 Logger.root.info('Unable to find a view element for \'${type}\''); | 116 Logger.root.info('Unable to find a view element for \'${type}\''); |
116 return; | 117 return; |
117 } | 118 } |
118 children.add(element); | 119 children.add(element); |
119 Logger.root.info('Viewing object of \'${type}\''); | 120 Logger.root.info('Viewing object of \'${type}\''); |
120 } | 121 } |
121 } | 122 } |
OLD | NEW |