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

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

Issue 1120133002: Rework error handling in the service protocol and in Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 case 'RandomAccessFileList': 119 case 'RandomAccessFileList':
120 IORandomAccessFileListViewElement element = 120 IORandomAccessFileListViewElement element =
121 new Element.tag('io-random-access-file-list-view'); 121 new Element.tag('io-random-access-file-list-view');
122 element.list = object; 122 element.list = object;
123 return element; 123 return element;
124 case 'RandomAccessFile': 124 case 'RandomAccessFile':
125 IORandomAccessFileViewElement element = 125 IORandomAccessFileViewElement element =
126 new Element.tag('io-random-access-file-view'); 126 new Element.tag('io-random-access-file-view');
127 element.file = object; 127 element.file = object;
128 return element; 128 return element;
129 case 'ServiceError':
130 ServiceErrorViewElement element =
131 new Element.tag('service-error-view');
132 element.error = object;
133 return element;
134 case 'ServiceException':
135 ServiceExceptionViewElement element =
136 new Element.tag('service-exception-view');
137 element.exception = object;
138 return element;
139 case 'Script': 129 case 'Script':
140 ScriptViewElement element = new Element.tag('script-view'); 130 ScriptViewElement element = new Element.tag('script-view');
141 element.script = object; 131 element.script = object;
142 return element; 132 return element;
143 case 'VM': 133 case 'VM':
144 VMViewElement element = new Element.tag('vm-view'); 134 VMViewElement element = new Element.tag('vm-view');
145 element.vm = object; 135 element.vm = object;
146 return element; 136 return element;
147 default: 137 default:
148 if (object.isInstance || 138 if (object.isInstance ||
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 211
222 dynamic expander() { 212 dynamic expander() {
223 return expandEvent; 213 return expandEvent;
224 } 214 }
225 215
226 void expandEvent(bool exp, var done) { 216 void expandEvent(bool exp, var done) {
227 expand = exp; 217 expand = exp;
228 done(); 218 done();
229 } 219 }
230 } 220 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698