| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 return element; | 109 return element; |
| 110 case 'ProcessList': | 110 case 'ProcessList': |
| 111 IOProcessListViewElement element = | 111 IOProcessListViewElement element = |
| 112 new Element.tag('io-process-list-view'); | 112 new Element.tag('io-process-list-view'); |
| 113 element.list = object; | 113 element.list = object; |
| 114 return element; | 114 return element; |
| 115 case 'Process': | 115 case 'Process': |
| 116 IOProcessViewElement element = new Element.tag('io-process-view'); | 116 IOProcessViewElement element = new Element.tag('io-process-view'); |
| 117 element.process = object; | 117 element.process = object; |
| 118 return element; | 118 return element; |
| 119 case 'Profile': | |
| 120 CpuProfileElement element = new Element.tag('cpu-profile'); | |
| 121 element.profile = object; | |
| 122 return element; | |
| 123 case 'RandomAccessFileList': | 119 case 'RandomAccessFileList': |
| 124 IORandomAccessFileListViewElement element = | 120 IORandomAccessFileListViewElement element = |
| 125 new Element.tag('io-random-access-file-list-view'); | 121 new Element.tag('io-random-access-file-list-view'); |
| 126 element.list = object; | 122 element.list = object; |
| 127 return element; | 123 return element; |
| 128 case 'RandomAccessFile': | 124 case 'RandomAccessFile': |
| 129 IORandomAccessFileViewElement element = | 125 IORandomAccessFileViewElement element = |
| 130 new Element.tag('io-random-access-file-view'); | 126 new Element.tag('io-random-access-file-view'); |
| 131 element.file = object; | 127 element.file = object; |
| 132 return element; | 128 return element; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 221 |
| 226 dynamic expander() { | 222 dynamic expander() { |
| 227 return expandEvent; | 223 return expandEvent; |
| 228 } | 224 } |
| 229 | 225 |
| 230 void expandEvent(bool exp, var done) { | 226 void expandEvent(bool exp, var done) { |
| 231 expand = exp; | 227 expand = exp; |
| 232 done(); | 228 done(); |
| 233 } | 229 } |
| 234 } | 230 } |
| OLD | NEW |