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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/io_view.html

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
OLDNEW
1 <head> 1 <head>
2 <link rel="import" href="nav_bar.html"> 2 <link rel="import" href="nav_bar.html">
3 <link rel="import" href="observatory_element.html"> 3 <link rel="import" href="observatory_element.html">
4 <link rel="import" href="service_ref.html"> 4 <link rel="import" href="service_ref.html">
5 </head> 5 </head>
6 <polymer-element name="io-view" extends="observatory-element"> 6 <polymer-element name="io-view" extends="observatory-element">
7 <template> 7 <template>
8 <link rel="stylesheet" href="css/shared.css"> 8 <link rel="stylesheet" href="css/shared.css">
9 9
10 <nav-bar> 10 <nav-bar>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 <hr> 61 <hr>
62 </template> 62 </template>
63 </polymer-element> 63 </polymer-element>
64 64
65 <polymer-element name="io-ref" extends="service-ref"> 65 <polymer-element name="io-ref" extends="service-ref">
66 <template> 66 <template>
67 <link rel="stylesheet" href="css/shared.css"> 67 <link rel="stylesheet" href="css/shared.css">
68 <template if="{{ ref.serviceType == 'Socket' }}"> 68 <template if="{{ ref.serviceType == 'Socket' }}">
69 <io-socket-ref ref="{{ ref }}"></io-socket-ref> 69 <io-socket-ref ref="{{ ref }}"></io-socket-ref>
70 </template> 70 </template>
71 <template if="{{ ref.serviceType == 'HttpServerConnection' }}">
72 <io-http-server-connection-ref ref="{{ ref }}"></io-http-server-connection -ref>
73 </template>
71 <template if="{{ ref.serviceType == 'HttpServer' }}"> 74 <template if="{{ ref.serviceType == 'HttpServer' }}">
72 <io-http-server-ref ref="{{ ref }}"></io-http-server-ref> 75 <io-http-server-ref ref="{{ ref }}"></io-http-server-ref>
73 </template> 76 </template>
74 <template if="{{ ref.serviceType == 'WebSocket' }}"> 77 <template if="{{ ref.serviceType == 'WebSocket' }}">
75 <io-web-socket-ref ref="{{ ref }}"></io-web-socket-ref> 78 <io-web-socket-ref ref="{{ ref }}"></io-web-socket-ref>
76 </template> 79 </template>
77 <template if="{{ ref.serviceType == 'Process' }}"> 80 <template if="{{ ref.serviceType == 'Process' }}">
78 <io-process-ref ref="{{ ref }}"></io-process-ref> 81 <io-process-ref ref="{{ ref }}"></io-process-ref>
79 </template> 82 </template>
80 </template> 83 </template>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 <div class="memberItem"> 139 <div class="memberItem">
137 <div class="memberName">Address</div> 140 <div class="memberName">Address</div>
138 <div class="memberValue">{{ httpServer['address'] }}</div> 141 <div class="memberValue">{{ httpServer['address'] }}</div>
139 </div> 142 </div>
140 <div class="memberItem"> 143 <div class="memberItem">
141 <div class="memberName">Port</div> 144 <div class="memberName">Port</div>
142 <div class="memberValue">{{ httpServer['port'] }}</div> 145 <div class="memberValue">{{ httpServer['port'] }}</div>
143 </div> 146 </div>
144 <div class="memberItem"> 147 <div class="memberItem">
145 <div class="memberName">Active connections</div> 148 <div class="memberName">Active connections</div>
146 <div class="memberValue">{{ httpServer['active'] }}</div> 149 <ul class="list-group">
150 <template repeat="{{ connection in httpServer['active'] }}">
151 <li class="list-group-item">
152 <io-http-server-connection-ref ref="{{ connection }}"></io-http- server-connection-ref>
153 </li>
154 </template>
155 </ul>
147 </div> 156 </div>
148 <div class="memberItem"> 157 <div class="memberItem">
149 <div class="memberName">Idle connections</div> 158 <div class="memberName">Idle connections</div>
150 <div class="memberValue">{{ httpServer['idle'] }}</div> 159 <ul class="list-group">
160 <template repeat="{{ connection in httpServer['idle'] }}">
161 <li class="list-group-item">
162 <io-http-server-connection-ref ref="{{ connection }}"></io-http- server-connection-ref>
163 </li>
164 </template>
165 </ul>
151 </div> 166 </div>
152 </div> 167 </div>
153 </div> 168 </div>
169 <br>
170 <hr>
171 </template>
172 </polymer-element>
173
174 <polymer-element name="io-http-server-connection-ref" extends="service-ref">
175 <template>
176 <link rel="stylesheet" href="css/shared.css">
177 <a href="{{ url }}">{{ name }}</a>
178 </template>
179 </polymer-element>
180
181 <polymer-element name="io-http-server-connection-view" extends="observatory-elem ent">
182 <template>
183 <link rel="stylesheet" href="css/shared.css">
184
185 <nav-bar>
186 <top-nav-menu last="{{ true }}"></top-nav-menu>
187 <nav-refresh callback="{{ refresh }}"></nav-refresh>
188 </nav-bar>
189
190 <div class="content">
191 <h1>HttpConnection</h1>
192
193 <br>
194
195 <div class="memberList">
196 <div class="memberItem">
197 <div class="memberName">Socket</div>
198 <div class="memberValue"><io-socket-ref ref="{{ connection['socket'] } }"></io-socket-ref></div>
199 </div>
200 <div class="memberItem">
201 <div class="memberName">State</div>
202 <div class="memberValue">{{ connection['state'] }}</div>
203 </div>
204 <div class="memberItem">
205 <div class="memberName">Server</div>
206 <div class="memberValue"><io-http-server-ref ref="{{ connection['serve r'] }}"></io-http-server-ref></div>
207 </div>
208 </div>
209 </div>
154 <br> 210 <br>
155 <hr> 211 <hr>
156 </template> 212 </template>
157 </polymer-element> 213 </polymer-element>
158 214
159 <polymer-element name="io-socket-ref" extends="service-ref"> 215 <polymer-element name="io-socket-ref" extends="service-ref">
160 <template> 216 <template>
161 <link rel="stylesheet" href="css/shared.css"> 217 <link rel="stylesheet" href="css/shared.css">
162 <a on-click="{{ goto }}" href="{{ url }}">{{ name }}</a> 218 <a on-click="{{ goto }}" href="{{ url }}">{{ name }}</a>
163 </template> 219 </template>
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 </template> 581 </template>
526 </div> 582 </div>
527 </div> 583 </div>
528 </div> 584 </div>
529 <br> 585 <br>
530 <hr> 586 <hr>
531 </template> 587 </template>
532 </polymer-element> 588 </polymer-element>
533 589
534 <script type="application/dart" src="io_view.dart"></script> 590 <script type="application/dart" src="io_view.dart"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698