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

Side by Side Diff: runtime/observatory/lib/src/elements/service_view.dart

Issue 2213613002: Converted observatory flag-list element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Added tests Created 4 years, 4 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
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/tracer.dart'; 10 import 'package:observatory/tracer.dart';
(...skipping 28 matching lines...) Expand all
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
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 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/helpers/uris.dart ('k') | runtime/observatory/lib/src/mocks/objects/flag.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698