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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/instance_ref.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, 9 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="curly_block.html">
2 <link rel="import" href="observatory_element.html"> 3 <link rel="import" href="observatory_element.html">
3 <link rel="import" href="service_ref.html"> 4 <link rel="import" href="service_ref.html">
4 </head> 5 </head>
5 <polymer-element name="instance-ref" extends="service-ref"> 6 <polymer-element name="instance-ref" extends="service-ref">
6 <template> 7 <template>
7 <style> 8 <style>
8 .memberList {
9 margin-left: 3em;
10 border-spacing: 0;
11 border-collapse: collapse;
12 }
13 .member { 9 .member {
14 vertical-align: top; 10 vertical-align: top;
15 padding: 0 1em; 11 padding: 0 0 0 1em;
16 } 12 }
17 </style> 13 </style>
18 <div> 14 <div>
19 <template if="{{ isUnexpectedRef(ref['type']) }}"> 15 <template if="{{ isUnexpectedRef(ref['type']) }}">
20 unexpected reference type &lt;{{ ref['type'] }}&gt; 16 unexpected reference type &lt;{{ ref['type'] }}&gt;
21 </template> 17 </template>
22 18
23 <template if="{{ isNullRef(ref['type']) }}"> 19 <template if="{{ isNullRef(ref['type']) }}">
24 {{ name }} 20 {{ name }}
25 </template> 21 </template>
26 22
27 <template if="{{ (isStringRef(ref['type']) || 23 <template if="{{ (isStringRef(ref['type']) ||
28 isBoolRef(ref['type']) || 24 isBoolRef(ref['type']) ||
29 isIntRef(ref['type'])) }}"> 25 isIntRef(ref['type'])) }}">
30 <a href="{{ url }}">{{ name }}</a> 26 <a href="{{ url }}">{{ name }}</a>
31 </template> 27 </template>
32 28
33 <template if="{{ isClosureRef(ref['type']) }}"> 29 <template if="{{ isClosureRef(ref['type']) }}">
34 <a href="{{ url }}"> 30 <a href="{{ url }}">
35 {{ ref['closureFunc']['user_name'] }} 31 {{ ref['closureFunc']['user_name'] }}
36 </a> 32 </a>
37 </template> 33 </template>
38 34
39 <template if="{{ isInstanceRef(ref['type']) }}"> 35 <template if="{{ isInstanceRef(ref['type']) }}">
40 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> { 36 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a>
41 <a on-click="{{ toggleExpand }}">...</a> 37 <curly-block callback="{{ expander() }}">
42 <template if="{{ expanded }}"> 38 <table>
43 <table class="memberList">
44 <tr template repeat="{{ field in ref['fields'] }}"> 39 <tr template repeat="{{ field in ref['fields'] }}">
45
46 <td class="member">{{ field['decl']['user_name'] }}</td> 40 <td class="member">{{ field['decl']['user_name'] }}</td>
47 <td class="member"> 41 <td class="member">
48 <instance-ref app="{{ app }}" ref="{{ field['value'] }}"></insta nce-ref> 42 <instance-ref app="{{ app }}" ref="{{ field['value'] }}"></insta nce-ref>
49 </td> 43 </td>
50 </tr> 44 </tr>
51 </table> 45 </table>
52 </template> 46 </curly-block>
53 }
54 </template> 47 </template>
55 48
56 <template if="{{ isListRef(ref['type']) }}"> 49 <template if="{{ isListRef(ref['type']) }}">
57 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em> ({{ ref['le ngth']}})</a> { 50 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em> ({{ ref['le ngth']}})</a>
58 <a on-click="{{ toggleExpand }}">...</a> 51 <curly-block callback="{{ expander() }}">
59 <template if="{{ expanded }}"> 52 <table>
60 <table class="memberList">
61 <tr template repeat="{{ element in ref['elements'] }}"> 53 <tr template repeat="{{ element in ref['elements'] }}">
62 <td class="member">[{{ element['index']}}]</td> 54 <td class="member">[{{ element['index']}}]</td>
63 <td class="member"> 55 <td class="member">
64 <instance-ref app="{{ app }}" ref="{{ element['value'] }}"></ins tance-ref> 56 <instance-ref app="{{ app }}" ref="{{ element['value'] }}"></ins tance-ref>
65 </td> 57 </td>
66 </tr> 58 </tr>
67 </table> 59 </table>
68 </template> 60 </curly-block>
69 }
70 </template> 61 </template>
71 62
72 </div> 63 </div>
73 </template> 64 </template>
74 <script type="application/dart" src="instance_ref.dart"></script> 65 <script type="application/dart" src="instance_ref.dart"></script>
75 </polymer-element> 66 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698