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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 element.isolate = object; | 106 element.isolate = object; |
107 return element; | 107 return element; |
108 case 'Library': | 108 case 'Library': |
109 LibraryViewElement element = new Element.tag('library-view'); | 109 LibraryViewElement element = new Element.tag('library-view'); |
110 element.library = object; | 110 element.library = object; |
111 return element; | 111 return element; |
112 case 'Profile': | 112 case 'Profile': |
113 IsolateProfileElement element = new Element.tag('isolate-profile'); | 113 IsolateProfileElement element = new Element.tag('isolate-profile'); |
114 element.profile = object; | 114 element.profile = object; |
115 return element; | 115 return element; |
| 116 case 'RandomAccessFileList': |
| 117 IORandomAccessFileListViewElement element = |
| 118 new Element.tag('io-random-access-file-list-view'); |
| 119 element.list = object; |
| 120 return element; |
| 121 case 'RandomAccessFile': |
| 122 IORandomAccessFileViewElement element = |
| 123 new Element.tag('io-random-access-file-view'); |
| 124 element.file = object; |
| 125 return element; |
116 case 'ServiceError': | 126 case 'ServiceError': |
117 ServiceErrorViewElement element = | 127 ServiceErrorViewElement element = |
118 new Element.tag('service-error-view'); | 128 new Element.tag('service-error-view'); |
119 element.error = object; | 129 element.error = object; |
120 return element; | 130 return element; |
121 case 'ServiceException': | 131 case 'ServiceException': |
122 ServiceExceptionViewElement element = | 132 ServiceExceptionViewElement element = |
123 new Element.tag('service-exception-view'); | 133 new Element.tag('service-exception-view'); |
124 element.exception = object; | 134 element.exception = object; |
125 return element; | 135 return element; |
(...skipping 26 matching lines...) Expand all Loading... |
152 var type = object.serviceType; | 162 var type = object.serviceType; |
153 var element = _constructElementForObject(); | 163 var element = _constructElementForObject(); |
154 if (element == null) { | 164 if (element == null) { |
155 Logger.root.info('Unable to find a view element for \'${type}\''); | 165 Logger.root.info('Unable to find a view element for \'${type}\''); |
156 return; | 166 return; |
157 } | 167 } |
158 children.add(element); | 168 children.add(element); |
159 Logger.root.info('Viewing object of \'${type}\''); | 169 Logger.root.info('Viewing object of \'${type}\''); |
160 } | 170 } |
161 } | 171 } |
OLD | NEW |