| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 return element; | 103 return element; |
| 104 case 'SocketList': | 104 case 'SocketList': |
| 105 IOSocketListViewElement element = | 105 IOSocketListViewElement element = |
| 106 new Element.tag('io-socket-list-view'); | 106 new Element.tag('io-socket-list-view'); |
| 107 element.list = object; | 107 element.list = object; |
| 108 return element; | 108 return element; |
| 109 case 'Socket': | 109 case 'Socket': |
| 110 IOSocketViewElement element = new Element.tag('io-socket-view'); | 110 IOSocketViewElement element = new Element.tag('io-socket-view'); |
| 111 element.socket = object; | 111 element.socket = object; |
| 112 return element; | 112 return element; |
| 113 case 'WebSocketList': |
| 114 IOWebSocketListViewElement element = |
| 115 new Element.tag('io-web-socket-list-view'); |
| 116 element.list = object; |
| 117 return element; |
| 118 case 'WebSocket': |
| 119 IOWebSocketViewElement element = new Element.tag('io-web-socket-view'); |
| 120 element.webSocket = object; |
| 121 return element; |
| 113 case 'Isolate': | 122 case 'Isolate': |
| 114 IsolateViewElement element = new Element.tag('isolate-view'); | 123 IsolateViewElement element = new Element.tag('isolate-view'); |
| 115 element.isolate = object; | 124 element.isolate = object; |
| 116 return element; | 125 return element; |
| 117 case 'Library': | 126 case 'Library': |
| 118 LibraryViewElement element = new Element.tag('library-view'); | 127 LibraryViewElement element = new Element.tag('library-view'); |
| 119 element.library = object; | 128 element.library = object; |
| 120 return element; | 129 return element; |
| 121 case 'ProcessList': | 130 case 'ProcessList': |
| 122 IOProcessListViewElement element = | 131 IOProcessListViewElement element = |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 var type = object.serviceType; | 189 var type = object.serviceType; |
| 181 var element = _constructElementForObject(); | 190 var element = _constructElementForObject(); |
| 182 if (element == null) { | 191 if (element == null) { |
| 183 Logger.root.info('Unable to find a view element for \'${type}\''); | 192 Logger.root.info('Unable to find a view element for \'${type}\''); |
| 184 return; | 193 return; |
| 185 } | 194 } |
| 186 children.add(element); | 195 children.add(element); |
| 187 Logger.root.info('Viewing object of \'${type}\''); | 196 Logger.root.info('Viewing object of \'${type}\''); |
| 188 } | 197 } |
| 189 } | 198 } |
| OLD | NEW |