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

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

Issue 2283263002: Converted Observatory script-view element (Closed)
Patch Set: Removed dead code 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 }(object); 49 }(object);
50 case 'Isolate': 50 case 'Isolate':
51 IsolateViewElement element = new Element.tag('isolate-view'); 51 IsolateViewElement element = new Element.tag('isolate-view');
52 element.isolate = object; 52 element.isolate = object;
53 return element; 53 return element;
54 case 'Library': 54 case 'Library':
55 LibraryViewElement element = new Element.tag('library-view'); 55 LibraryViewElement element = new Element.tag('library-view');
56 element.library = object; 56 element.library = object;
57 return element; 57 return element;
58 case 'Script':
59 ScriptViewElement element = new Element.tag('script-view');
60 element.script = object;
61 return element;
62 case 'VM': 58 case 'VM':
63 VMViewElement element = new Element.tag('vm-view'); 59 VMViewElement element = new Element.tag('vm-view');
64 element.vm = object; 60 element.vm = object;
65 return element; 61 return element;
66 default: 62 default:
67 if (object.isInstance || 63 if (object.isInstance ||
68 object.isSentinel) { // TODO(rmacnak): Separate this out. 64 object.isSentinel) { // TODO(rmacnak): Separate this out.
69 InstanceViewElement element = new Element.tag('instance-view'); 65 InstanceViewElement element = new Element.tag('instance-view');
70 element.instance = object; 66 element.instance = object;
71 return element; 67 return element;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 136
141 dynamic expander() { 137 dynamic expander() {
142 return expandEvent; 138 return expandEvent;
143 } 139 }
144 140
145 void expandEvent(bool exp, var done) { 141 void expandEvent(bool exp, var done) {
146 expand = exp; 142 expand = exp;
147 done(); 143 done();
148 } 144 }
149 } 145 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/script_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