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

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

Issue 2291823002: Converted Observatory function-view element (Closed)
Patch Set: Updated observatory_sources.gypi Created 4 years, 3 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 12 matching lines...) Expand all
23 var type = object.type; 23 var type = object.type;
24 switch (type) { 24 switch (type) {
25 case 'Class': 25 case 'Class':
26 ClassViewElement element = new Element.tag('class-view'); 26 ClassViewElement element = new Element.tag('class-view');
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 'Function':
34 FunctionViewElement element = new Element.tag('function-view');
35 element.function = object;
36 return element;
37 case 'Object': 33 case 'Object':
38 return (object) { 34 return (object) {
39 switch (object.vmType) { 35 switch (object.vmType) {
40 default: 36 default:
41 ObjectViewElement element = new Element.tag('object-view'); 37 ObjectViewElement element = new Element.tag('object-view');
42 element.object = object; 38 element.object = object;
43 return element; 39 return element;
44 } 40 }
45 }(object); 41 }(object);
46 case 'Isolate': 42 case 'Isolate':
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 128
133 dynamic expander() { 129 dynamic expander() {
134 return expandEvent; 130 return expandEvent;
135 } 131 }
136 132
137 void expandEvent(bool exp, var done) { 133 void expandEvent(bool exp, var done) {
138 expand = exp; 134 expand = exp;
139 done(); 135 done();
140 } 136 }
141 } 137 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/function_view.html ('k') | runtime/observatory/lib/src/elements/service_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698