| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 element.socket = object; | 111 element.socket = object; |
| 112 return element; | 112 return element; |
| 113 case 'Isolate': | 113 case 'Isolate': |
| 114 IsolateViewElement element = new Element.tag('isolate-view'); | 114 IsolateViewElement element = new Element.tag('isolate-view'); |
| 115 element.isolate = object; | 115 element.isolate = object; |
| 116 return element; | 116 return element; |
| 117 case 'Library': | 117 case 'Library': |
| 118 LibraryViewElement element = new Element.tag('library-view'); | 118 LibraryViewElement element = new Element.tag('library-view'); |
| 119 element.library = object; | 119 element.library = object; |
| 120 return element; | 120 return element; |
| 121 case 'ProcessList': |
| 122 IOProcessListViewElement element = |
| 123 new Element.tag('io-process-list-view'); |
| 124 element.list = object; |
| 125 return element; |
| 126 case 'Process': |
| 127 IOProcessViewElement element = new Element.tag('io-process-view'); |
| 128 element.process = object; |
| 129 return element; |
| 121 case 'Profile': | 130 case 'Profile': |
| 122 IsolateProfileElement element = new Element.tag('isolate-profile'); | 131 IsolateProfileElement element = new Element.tag('isolate-profile'); |
| 123 element.profile = object; | 132 element.profile = object; |
| 124 return element; | 133 return element; |
| 125 case 'RandomAccessFileList': | 134 case 'RandomAccessFileList': |
| 126 IORandomAccessFileListViewElement element = | 135 IORandomAccessFileListViewElement element = |
| 127 new Element.tag('io-random-access-file-list-view'); | 136 new Element.tag('io-random-access-file-list-view'); |
| 128 element.list = object; | 137 element.list = object; |
| 129 return element; | 138 return element; |
| 130 case 'RandomAccessFile': | 139 case 'RandomAccessFile': |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 var type = object.serviceType; | 180 var type = object.serviceType; |
| 172 var element = _constructElementForObject(); | 181 var element = _constructElementForObject(); |
| 173 if (element == null) { | 182 if (element == null) { |
| 174 Logger.root.info('Unable to find a view element for \'${type}\''); | 183 Logger.root.info('Unable to find a view element for \'${type}\''); |
| 175 return; | 184 return; |
| 176 } | 185 } |
| 177 children.add(element); | 186 children.add(element); |
| 178 Logger.root.info('Viewing object of \'${type}\''); | 187 Logger.root.info('Viewing object of \'${type}\''); |
| 179 } | 188 } |
| 180 } | 189 } |
| OLD | NEW |