| 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 28 matching lines...) Expand all Loading... |
| 39 element.context = object; | 39 element.context = object; |
| 40 return element; | 40 return element; |
| 41 case 'Error': | 41 case 'Error': |
| 42 ErrorViewElement element = new Element.tag('error-view'); | 42 ErrorViewElement element = new Element.tag('error-view'); |
| 43 element.error = object; | 43 element.error = object; |
| 44 return element; | 44 return element; |
| 45 case 'Field': | 45 case 'Field': |
| 46 FieldViewElement element = new Element.tag('field-view'); | 46 FieldViewElement element = new Element.tag('field-view'); |
| 47 element.field = object; | 47 element.field = object; |
| 48 return element; | 48 return element; |
| 49 case 'FlagList': | |
| 50 FlagListElement element = new Element.tag('flag-list'); | |
| 51 element.flagList = object; | |
| 52 return element; | |
| 53 case 'Function': | 49 case 'Function': |
| 54 FunctionViewElement element = new Element.tag('function-view'); | 50 FunctionViewElement element = new Element.tag('function-view'); |
| 55 element.function = object; | 51 element.function = object; |
| 56 return element; | 52 return element; |
| 57 case 'HeapMap': | 53 case 'HeapMap': |
| 58 HeapMapElement element = new Element.tag('heap-map'); | 54 HeapMapElement element = new Element.tag('heap-map'); |
| 59 element.fragmentation = object; | 55 element.fragmentation = object; |
| 60 return element; | 56 return element; |
| 61 case 'IO': | 57 case 'IO': |
| 62 IOViewElement element = new Element.tag('io-view'); | 58 IOViewElement element = new Element.tag('io-view'); |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 230 |
| 235 dynamic expander() { | 231 dynamic expander() { |
| 236 return expandEvent; | 232 return expandEvent; |
| 237 } | 233 } |
| 238 | 234 |
| 239 void expandEvent(bool exp, var done) { | 235 void expandEvent(bool exp, var done) { |
| 240 expand = exp; | 236 expand = exp; |
| 241 done(); | 237 done(); |
| 242 } | 238 } |
| 243 } | 239 } |
| OLD | NEW |