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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/service_view.dart

Issue 291343009: Add initial Random Access File information to Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/io_view.html ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/elements.dart'; 10 import 'package:observatory/elements.dart';
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 element.isolate = object; 106 element.isolate = object;
107 return element; 107 return element;
108 case 'Library': 108 case 'Library':
109 LibraryViewElement element = new Element.tag('library-view'); 109 LibraryViewElement element = new Element.tag('library-view');
110 element.library = object; 110 element.library = object;
111 return element; 111 return element;
112 case 'Profile': 112 case 'Profile':
113 IsolateProfileElement element = new Element.tag('isolate-profile'); 113 IsolateProfileElement element = new Element.tag('isolate-profile');
114 element.profile = object; 114 element.profile = object;
115 return element; 115 return element;
116 case 'RandomAccessFileList':
117 IORandomAccessFileListViewElement element =
118 new Element.tag('io-random-access-file-list-view');
119 element.list = object;
120 return element;
121 case 'RandomAccessFile':
122 IORandomAccessFileViewElement element =
123 new Element.tag('io-random-access-file-view');
124 element.file = object;
125 return element;
116 case 'ServiceError': 126 case 'ServiceError':
117 ServiceErrorViewElement element = 127 ServiceErrorViewElement element =
118 new Element.tag('service-error-view'); 128 new Element.tag('service-error-view');
119 element.error = object; 129 element.error = object;
120 return element; 130 return element;
121 case 'ServiceException': 131 case 'ServiceException':
122 ServiceExceptionViewElement element = 132 ServiceExceptionViewElement element =
123 new Element.tag('service-exception-view'); 133 new Element.tag('service-exception-view');
124 element.exception = object; 134 element.exception = object;
125 return element; 135 return element;
(...skipping 26 matching lines...) Expand all
152 var type = object.serviceType; 162 var type = object.serviceType;
153 var element = _constructElementForObject(); 163 var element = _constructElementForObject();
154 if (element == null) { 164 if (element == null) {
155 Logger.root.info('Unable to find a view element for \'${type}\''); 165 Logger.root.info('Unable to find a view element for \'${type}\'');
156 return; 166 return;
157 } 167 }
158 children.add(element); 168 children.add(element);
159 Logger.root.info('Viewing object of \'${type}\''); 169 Logger.root.info('Viewing object of \'${type}\'');
160 } 170 }
161 } 171 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/io_view.html ('k') | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698