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

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

Issue 866663003: Add a working command line debugger to Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/tracer.dart'; 10 import 'package:observatory/tracer.dart';
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 Logger.root.info('Viewing null object.'); 169 Logger.root.info('Viewing null object.');
170 return; 170 return;
171 } 171 }
172 var type = object.vmType; 172 var type = object.vmType;
173 var element = _constructElementForObject(); 173 var element = _constructElementForObject();
174 if (element == null) { 174 if (element == null) {
175 Logger.root.info('Unable to find a view element for \'${type}\''); 175 Logger.root.info('Unable to find a view element for \'${type}\'');
176 return; 176 return;
177 } 177 }
178 children.add(element); 178 children.add(element);
179 Logger.root.info('Viewing object of \'${type}\'');
180 } 179 }
181 } 180 }
182 181
183 @CustomTag('trace-view') 182 @CustomTag('trace-view')
184 class TraceViewElement extends ObservatoryElement { 183 class TraceViewElement extends ObservatoryElement {
185 @published Tracer tracer; 184 @published Tracer tracer;
186 TraceViewElement.created() : super.created(); 185 TraceViewElement.created() : super.created();
187 } 186 }
188 187
189 @CustomTag('map-viewer') 188 @CustomTag('map-viewer')
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 225
227 dynamic expander() { 226 dynamic expander() {
228 return expandEvent; 227 return expandEvent;
229 } 228 }
230 229
231 void expandEvent(bool exp, var done) { 230 void expandEvent(bool exp, var done) {
232 expand = exp; 231 expand = exp;
233 done(); 232 done();
234 } 233 }
235 } 234 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698