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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 return element; | 90 return element; |
91 case 'ObjectPool': | 91 case 'ObjectPool': |
92 ObjectPoolViewElement element = new Element.tag('objectpool-view'); | 92 ObjectPoolViewElement element = new Element.tag('objectpool-view'); |
93 element.pool = object; | 93 element.pool = object; |
94 return element; | 94 return element; |
95 default: | 95 default: |
96 ObjectViewElement element = new Element.tag('object-view'); | 96 ObjectViewElement element = new Element.tag('object-view'); |
97 element.object = object; | 97 element.object = object; |
98 return element; | 98 return element; |
99 } | 99 } |
100 break; | |
Cutch
2015/08/12 19:25:48
Yahoo!
| |
101 case 'SocketList': | 100 case 'SocketList': |
102 IOSocketListViewElement element = | 101 IOSocketListViewElement element = |
103 new Element.tag('io-socket-list-view'); | 102 new Element.tag('io-socket-list-view'); |
104 element.list = object; | 103 element.list = object; |
105 return element; | 104 return element; |
106 case 'Socket': | 105 case 'Socket': |
107 IOSocketViewElement element = new Element.tag('io-socket-view'); | 106 IOSocketViewElement element = new Element.tag('io-socket-view'); |
108 element.socket = object; | 107 element.socket = object; |
109 return element; | 108 return element; |
110 case 'WebSocketList': | 109 case 'WebSocketList': |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
228 | 227 |
229 dynamic expander() { | 228 dynamic expander() { |
230 return expandEvent; | 229 return expandEvent; |
231 } | 230 } |
232 | 231 |
233 void expandEvent(bool exp, var done) { | 232 void expandEvent(bool exp, var done) { |
234 expand = exp; | 233 expand = exp; |
235 done(); | 234 done(); |
236 } | 235 } |
237 } | 236 } |
OLD | NEW |