| 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/tracer.dart'; | 10 import 'package:observatory/tracer.dart'; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 case 'HttpServer': | 74 case 'HttpServer': |
| 75 IOHttpServerViewElement element = | 75 IOHttpServerViewElement element = |
| 76 new Element.tag('io-http-server-view'); | 76 new Element.tag('io-http-server-view'); |
| 77 element.httpServer = object; | 77 element.httpServer = object; |
| 78 return element; | 78 return element; |
| 79 case 'HttpServerConnection': | 79 case 'HttpServerConnection': |
| 80 IOHttpServerConnectionViewElement element = | 80 IOHttpServerConnectionViewElement element = |
| 81 new Element.tag('io-http-server-connection-view'); | 81 new Element.tag('io-http-server-connection-view'); |
| 82 element.connection = object; | 82 element.connection = object; |
| 83 return element; | 83 return element; |
| 84 case 'Object': |
| 85 ObjectViewElement element = new Element.tag('object-view'); |
| 86 element.object = object; |
| 87 return element; |
| 84 case 'SocketList': | 88 case 'SocketList': |
| 85 IOSocketListViewElement element = | 89 IOSocketListViewElement element = |
| 86 new Element.tag('io-socket-list-view'); | 90 new Element.tag('io-socket-list-view'); |
| 87 element.list = object; | 91 element.list = object; |
| 88 return element; | 92 return element; |
| 89 case 'Socket': | 93 case 'Socket': |
| 90 IOSocketViewElement element = new Element.tag('io-socket-view'); | 94 IOSocketViewElement element = new Element.tag('io-socket-view'); |
| 91 element.socket = object; | 95 element.socket = object; |
| 92 return element; | 96 return element; |
| 93 case 'WebSocketList': | 97 case 'WebSocketList': |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 234 |
| 231 dynamic expander() { | 235 dynamic expander() { |
| 232 return expandEvent; | 236 return expandEvent; |
| 233 } | 237 } |
| 234 | 238 |
| 235 void expandEvent(bool exp, var done) { | 239 void expandEvent(bool exp, var done) { |
| 236 expand = exp; | 240 expand = exp; |
| 237 done(); | 241 done(); |
| 238 } | 242 } |
| 239 } | 243 } |
| OLD | NEW |