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

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

Issue 302173007: Add HttpServerConnection to Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test. 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/http_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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 case 'HttpServerList': 98 case 'HttpServerList':
99 IOHttpServerListViewElement element = 99 IOHttpServerListViewElement element =
100 new Element.tag('io-http-server-list-view'); 100 new Element.tag('io-http-server-list-view');
101 element.list = object; 101 element.list = object;
102 return element; 102 return element;
103 case 'HttpServer': 103 case 'HttpServer':
104 IOHttpServerViewElement element = 104 IOHttpServerViewElement element =
105 new Element.tag('io-http-server-view'); 105 new Element.tag('io-http-server-view');
106 element.httpServer = object; 106 element.httpServer = object;
107 return element; 107 return element;
108 case 'HttpServerConnection':
109 IOHttpServerConnectionViewElement element =
110 new Element.tag('io-http-server-connection-view');
111 element.connection = object;
112 return element;
108 case 'SocketList': 113 case 'SocketList':
109 IOSocketListViewElement element = 114 IOSocketListViewElement element =
110 new Element.tag('io-socket-list-view'); 115 new Element.tag('io-socket-list-view');
111 element.list = object; 116 element.list = object;
112 return element; 117 return element;
113 case 'Socket': 118 case 'Socket':
114 IOSocketViewElement element = new Element.tag('io-socket-view'); 119 IOSocketViewElement element = new Element.tag('io-socket-view');
115 element.socket = object; 120 element.socket = object;
116 return element; 121 return element;
117 case 'WebSocketList': 122 case 'WebSocketList':
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 var type = object.serviceType; 198 var type = object.serviceType;
194 var element = _constructElementForObject(); 199 var element = _constructElementForObject();
195 if (element == null) { 200 if (element == null) {
196 Logger.root.info('Unable to find a view element for \'${type}\''); 201 Logger.root.info('Unable to find a view element for \'${type}\'');
197 return; 202 return;
198 } 203 }
199 children.add(element); 204 children.add(element);
200 Logger.root.info('Viewing object of \'${type}\''); 205 Logger.root.info('Viewing object of \'${type}\'');
201 } 206 }
202 } 207 }
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/io_view.html ('k') | sdk/lib/io/http_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698