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 16 matching lines...) Expand all Loading... |
27 element.cls = object; | 27 element.cls = object; |
28 return element; | 28 return element; |
29 case 'Code': | 29 case 'Code': |
30 CodeViewElement element = new Element.tag('code-view'); | 30 CodeViewElement element = new Element.tag('code-view'); |
31 element.code = object; | 31 element.code = object; |
32 return element; | 32 return element; |
33 case 'Isolate': | 33 case 'Isolate': |
34 IsolateViewElement element = new Element.tag('isolate-view'); | 34 IsolateViewElement element = new Element.tag('isolate-view'); |
35 element.isolate = object; | 35 element.isolate = object; |
36 return element; | 36 return element; |
37 case 'Library': | |
38 LibraryViewElement element = new Element.tag('library-view'); | |
39 element.library = object; | |
40 return element; | |
41 case 'VM': | 37 case 'VM': |
42 VMViewElement element = new Element.tag('vm-view'); | 38 VMViewElement element = new Element.tag('vm-view'); |
43 element.vm = object; | 39 element.vm = object; |
44 return element; | 40 return element; |
45 default: | 41 default: |
46 if (object.isInstance || | 42 if (object.isInstance || |
47 object.isSentinel) { // TODO(rmacnak): Separate this out. | 43 object.isSentinel) { // TODO(rmacnak): Separate this out. |
48 InstanceViewElement element = new Element.tag('instance-view'); | 44 InstanceViewElement element = new Element.tag('instance-view'); |
49 element.instance = object; | 45 element.instance = object; |
50 return element; | 46 return element; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 115 |
120 dynamic expander() { | 116 dynamic expander() { |
121 return expandEvent; | 117 return expandEvent; |
122 } | 118 } |
123 | 119 |
124 void expandEvent(bool exp, var done) { | 120 void expandEvent(bool exp, var done) { |
125 expand = exp; | 121 expand = exp; |
126 done(); | 122 done(); |
127 } | 123 } |
128 } | 124 } |
OLD | NEW |