| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 case 'ProcessList': | 114 case 'ProcessList': |
| 115 IOProcessListViewElement element = | 115 IOProcessListViewElement element = |
| 116 new Element.tag('io-process-list-view'); | 116 new Element.tag('io-process-list-view'); |
| 117 element.list = object; | 117 element.list = object; |
| 118 return element; | 118 return element; |
| 119 case 'Process': | 119 case 'Process': |
| 120 IOProcessViewElement element = new Element.tag('io-process-view'); | 120 IOProcessViewElement element = new Element.tag('io-process-view'); |
| 121 element.process = object; | 121 element.process = object; |
| 122 return element; | 122 return element; |
| 123 case 'Profile': | 123 case 'Profile': |
| 124 IsolateProfileElement element = new Element.tag('isolate-profile'); | 124 CpuProfileElement element = new Element.tag('cpu-profile'); |
| 125 element.profile = object; | 125 element.profile = object; |
| 126 return element; | 126 return element; |
| 127 case 'RandomAccessFileList': | 127 case 'RandomAccessFileList': |
| 128 IORandomAccessFileListViewElement element = | 128 IORandomAccessFileListViewElement element = |
| 129 new Element.tag('io-random-access-file-list-view'); | 129 new Element.tag('io-random-access-file-list-view'); |
| 130 element.list = object; | 130 element.list = object; |
| 131 return element; | 131 return element; |
| 132 case 'RandomAccessFile': | 132 case 'RandomAccessFile': |
| 133 IORandomAccessFileViewElement element = | 133 IORandomAccessFileViewElement element = |
| 134 new Element.tag('io-random-access-file-view'); | 134 new Element.tag('io-random-access-file-view'); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 dynamic expander() { | 231 dynamic expander() { |
| 232 return expandEvent; | 232 return expandEvent; |
| 233 } | 233 } |
| 234 | 234 |
| 235 void expandEvent(bool exp, var done) { | 235 void expandEvent(bool exp, var done) { |
| 236 expand = exp; | 236 expand = exp; |
| 237 done(); | 237 done(); |
| 238 } | 238 } |
| 239 } | 239 } |
| OLD | NEW |