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

Side by Side Diff: runtime/observatory/lib/src/elements/nav_bar.html

Issue 1965823002: Initial isolate reload support (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
OLDNEW
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> 1 <link rel="import" href="../../../../packages/polymer/polymer.html">
2 <link rel="import" href="action_link.html"> 2 <link rel="import" href="action_link.html">
3 <link rel="import" href="observatory_element.html"> 3 <link rel="import" href="observatory_element.html">
4 4
5 <polymer-element name="nav-bar" extends="observatory-element"> 5 <polymer-element name="nav-bar" extends="observatory-element">
6 <template> 6 <template>
7 <link rel="stylesheet" href="css/shared.css"> 7 <link rel="stylesheet" href="css/shared.css">
8 <style> 8 <style>
9 nav { 9 nav {
10 position: fixed; 10 position: fixed;
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 padding-right: 25px; 291 padding-right: 25px;
292 width: 250px; 292 width: 250px;
293 color: #ddd; 293 color: #ddd;
294 background: rgba(0,0,0,.6); 294 background: rgba(0,0,0,.6);
295 border: solid 2px white; 295 border: solid 2px white;
296 box-shadow: 0 0 5px black; 296 box-shadow: 0 0 5px black;
297 border-radius: 5px; 297 border-radius: 5px;
298 animation: fadein 1s; 298 animation: fadein 1s;
299 } 299 }
300 300
301 .wide-item {
302 width: 50vw;
303 }
304
301 @keyframes fadein { 305 @keyframes fadein {
302 from { opacity: 0; } 306 from { opacity: 0; }
303 to { opacity: 1; } 307 to { opacity: 1; }
304 } 308 }
305 309
306 a.link { 310 a.link {
307 color: white; 311 color: white;
308 text-decoration: none; 312 text-decoration: none;
309 } 313 }
310 a.link:hover { 314 a.link:hover {
(...skipping 10 matching lines...) Expand all
321 line-height: 16px; 325 line-height: 16px;
322 border-radius: 9px; 326 border-radius: 9px;
323 color: white; 327 color: white;
324 font-size: 18px; 328 font-size: 18px;
325 cursor: pointer; 329 cursor: pointer;
326 text-align: center; 330 text-align: center;
327 } 331 }
328 a.boxclose:hover { 332 a.boxclose:hover {
329 background: rgba(255,255,255,0.5); 333 background: rgba(255,255,255,0.5);
330 } 334 }
335 .error {
336 white-space: pre;
337 }
331 </style> 338 </style>
332 <template if="{{ event != null }}"> 339 <template if="{{ event != null }}">
333 <template if="{{ notifyOnPause && event.isPauseEvent }}"> 340 <template if="{{ notifyOnPause && event.isPauseEvent }}">
334 <div class="item"> 341 <div class="item">
335 Isolate 342 Isolate
336 <a class="link" on-click="{{ goto }}" 343 <a class="link" on-click="{{ goto }}"
337 _href="{{ gotoLink('/inspect', event.isolate) }}">{{ event.isolate. name }}</a> 344 _href="{{ gotoLink('/inspect', event.isolate) }}">{{ event.isolate. name }}</a>
338 is paused 345 is paused
339 <template if="{{ event.kind == 'PauseStart' }}"> 346 <template if="{{ event.kind == 'PauseStart' }}">
340 at isolate start 347 at isolate start
(...skipping 24 matching lines...) Expand all
365 <a class="boxclose" on-click="{{ closeItem }}">&times;</a> 372 <a class="boxclose" on-click="{{ closeItem }}">&times;</a>
366 </div> 373 </div>
367 </template> 374 </template>
368 <template if="{{ event.kind == 'Inspect' }}"> 375 <template if="{{ event.kind == 'Inspect' }}">
369 <div class="item"> 376 <div class="item">
370 Inspect <any-service-ref ref="{{ event.inspectee }}"></any-service-ref > 377 Inspect <any-service-ref ref="{{ event.inspectee }}"></any-service-ref >
371 <br><br> 378 <br><br>
372 <a class="boxclose" on-click="{{ closeItem }}">&times;</a> 379 <a class="boxclose" on-click="{{ closeItem }}">&times;</a>
373 </div> 380 </div>
374 </template> 381 </template>
382 <template if="{{ event.kind == 'IsolateReload' }}">
383 <div class="wide-item item">
384 Isolate reload
385 <template if="{{ event.reloadError != null }}">
386 failed:
387 <br>
388 <br>
389 <div class="indent error">{{ event.reloadError.message.toString() }} </div><br>
390 </template>
391 <template if="{{ event.reloadError == null }}">
392 succeeded
393 </template>
394 <a class="boxclose" on-click="{{ closeItem }}">&times;</a>
395 </div>
396 </template>
375 </template> 397 </template>
376 </template> 398 </template>
377 </polymer-element> 399 </polymer-element>
378 400
379 401
380 <polymer-element name="nav-notify-exception" extends="observatory-element"> 402 <polymer-element name="nav-notify-exception" extends="observatory-element">
381 <template> 403 <template>
382 <style> 404 <style>
383 .item { 405 .item {
384 position: relative; 406 position: relative;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 [<a class="link" on-click="{{ goto }}" 477 [<a class="link" on-click="{{ goto }}"
456 _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>] 478 _href="{{ gotoLink('vm-connect') }}">Connect to a different VM</a>]
457 <a class="boxclose" on-click="{{ closeItem }}">&times;</a> 479 <a class="boxclose" on-click="{{ closeItem }}">&times;</a>
458 </div> 480 </div>
459 </template> 481 </template>
460 </template> 482 </template>
461 </polymer-element> 483 </polymer-element>
462 484
463 485
464 <script type="application/dart" src="nav_bar.dart"></script> 486 <script type="application/dart" src="nav_bar.dart"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698