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

Unified Diff: runtime/bin/vmservice/client/deployed/web/index.html

Issue 182413007: Add new <curly-block> element. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js / fix bugs with reload Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/vmservice/client/deployed/web/index.html_bootstrap.dart.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/client/deployed/web/index.html
diff --git a/runtime/bin/vmservice/client/deployed/web/index.html b/runtime/bin/vmservice/client/deployed/web/index.html
index 501b4f64073aa5b2db5b75fa7390d76690fff12b..1441387ca3b31988c26c30130eb6ba6324c74313 100644
--- a/runtime/bin/vmservice/client/deployed/web/index.html
+++ b/runtime/bin/vmservice/client/deployed/web/index.html
@@ -136,6 +136,7 @@
<style>
.active {
color: #aaa;
+ cursor: wait;
}
.idle {
color: #000;
@@ -264,17 +265,52 @@
<a title="{{ hoverText }}" href="{{ url }}">{{ name }}</a>
</template>
-</polymer-element><polymer-element name="instance-ref" extends="service-ref">
+</polymer-element><polymer-element name="curly-block">
<template>
<style>
- .memberList {
- margin-left: 3em;
- border-spacing: 0;
- border-collapse: collapse;
+ .idle {
+ display: inline-block;
+ color: #0489c3;
+ cursor: pointer;
+ }
+ .busy {
+ display: inline-block;
+ color: white;
+ cursor: wait;
}
+ </style>
+ <template if="{{ expanded }}">
+ <template if="{{ busy }}">
+ {<div class="busy">&nbsp;&nbsp;⊟&nbsp;&nbsp;</div>
+ <br>
+ <content></content>
+ }
+ </template>
+ <template if="{{ !busy }}">
+ {<a on-click="{{ toggleExpand }}"><div class="idle">&nbsp;&nbsp;⊟&nbsp;&nbsp;</div></a>
+ <br>
+ <content></content>
+ }
+ </template>
+ </template>
+
+ <template if="{{ !expanded }}">
+ <template if="{{ busy }}">
+ {<div class="busy">&nbsp;&nbsp;⊞&nbsp;&nbsp;</div>}
+ </template>
+ <template if="{{ !busy }}">
+ {<a on-click="{{ toggleExpand }}"><div class="idle">&nbsp;&nbsp;⊞&nbsp;&nbsp;</div></a>}
+ </template>
+ </template>
+ </template>
+
+</polymer-element>
+<polymer-element name="instance-ref" extends="service-ref">
+ <template>
+ <style>
.member {
- vertical-align: top;
- padding: 0 1em;
+ vertical-align: top;
+ padding: 0 0 0 1em;
}
</style>
<div>
@@ -299,27 +335,23 @@
</template>
<template if="{{ isInstanceRef(ref['type']) }}">
- <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> {
- <a on-click="{{ toggleExpand }}">...</a>
- <template if="{{ expanded }}">
- <table class="memberList">
+ <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a>
+ <curly-block callback="{{ expander() }}">
+ <table>
<tbody><tr template="" repeat="{{ field in ref['fields'] }}">
-
<td class="member">{{ field['decl']['user_name'] }}</td>
<td class="member">
<instance-ref app="{{ app }}" ref="{{ field['value'] }}"></instance-ref>
</td>
</tr>
</tbody></table>
- </template>
- }
+ </curly-block>
</template>
<template if="{{ isListRef(ref['type']) }}">
- <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em> ({{ ref['length']}})</a> {
- <a on-click="{{ toggleExpand }}">...</a>
- <template if="{{ expanded }}">
- <table class="memberList">
+ <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em> ({{ ref['length']}})</a>
+ <curly-block callback="{{ expander() }}">
+ <table>
<tbody><tr template="" repeat="{{ element in ref['elements'] }}">
<td class="member">[{{ element['index']}}]</td>
<td class="member">
@@ -327,8 +359,7 @@
</td>
</tr>
</tbody></table>
- </template>
- }
+ </curly-block>
</template>
</div>
@@ -972,14 +1003,9 @@
<polymer-element name="stack-frame" extends="observatory-element">
<template>
<style>
- .memberList {
- margin-left: 3em;
- border-spacing: 0;
- border-collapse: collapse;
- }
.member {
- vertical-align: top;
- padding: 0 1em;
+ vertical-align: top;
+ padding: 0 0 0 1em;
}
</style>
<div class="row">
@@ -990,11 +1016,9 @@
<div class="col-md-9">
<function-ref app="{{ app }}" ref="{{ frame['function'] }}"></function-ref>
( <script-ref app="{{ app }}" ref="{{ frame['script'] }}" line="{{ frame['line'] }}">
- </script-ref> ) {
- <a on-click="{{ toggleExpand }}">...</a>
-
- <template if="{{ expanded }}">
- <table class="memberList">
+ </script-ref> )
+ <curly-block>
+ <table>
<tbody><tr template="" repeat="{{ v in frame['vars'] }}">
<td class="member">{{ v['name']}}</td>
<td class="member">
@@ -1002,8 +1026,7 @@
</td>
</tr>
</tbody></table>
- </template>
- }
+ </curly-block>
</div>
<div class="col-md-1"></div>
« no previous file with comments | « no previous file | runtime/bin/vmservice/client/deployed/web/index.html_bootstrap.dart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698