Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/service_view.dart

Issue 299143007: Show flags in Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js + code review Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/elements.dart'; 10 import 'package:observatory/elements.dart';
(...skipping 26 matching lines...) Expand all
37 element.code = object; 37 element.code = object;
38 return element; 38 return element;
39 case 'Error': 39 case 'Error':
40 ErrorViewElement element = new Element.tag('error-view'); 40 ErrorViewElement element = new Element.tag('error-view');
41 element.error = object; 41 element.error = object;
42 return element; 42 return element;
43 case 'Field': 43 case 'Field':
44 FieldViewElement element = new Element.tag('field-view'); 44 FieldViewElement element = new Element.tag('field-view');
45 element.field = object; 45 element.field = object;
46 return element; 46 return element;
47 case 'FlagList':
48 FlagListElement element = new Element.tag('flag-list');
49 element.flagList = object;
50 return element;
47 case 'Function': 51 case 'Function':
48 FunctionViewElement element = new Element.tag('function-view'); 52 FunctionViewElement element = new Element.tag('function-view');
49 element.function = object; 53 element.function = object;
50 return element; 54 return element;
51 case 'HeapMap': 55 case 'HeapMap':
52 HeapMapElement element = new Element.tag('heap-map'); 56 HeapMapElement element = new Element.tag('heap-map');
53 element.fragmentation = object; 57 element.fragmentation = object;
54 return element; 58 return element;
55 case 'LibraryPrefix': 59 case 'LibraryPrefix':
56 case 'TypeRef': 60 case 'TypeRef':
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 var type = object.serviceType; 193 var type = object.serviceType;
190 var element = _constructElementForObject(); 194 var element = _constructElementForObject();
191 if (element == null) { 195 if (element == null) {
192 Logger.root.info('Unable to find a view element for \'${type}\''); 196 Logger.root.info('Unable to find a view element for \'${type}\'');
193 return; 197 return;
194 } 198 }
195 children.add(element); 199 children.add(element);
196 Logger.root.info('Viewing object of \'${type}\''); 200 Logger.root.info('Viewing object of \'${type}\'');
197 } 201 }
198 } 202 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698