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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/instance_ref.html

Issue 184233007: Refactor Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
(Empty)
1 <head>
2 <link rel="import" href="curly_block.html">
3 <link rel="import" href="observatory_element.html">
4 <link rel="import" href="service_ref.html">
5 </head>
6 <polymer-element name="instance-ref" extends="service-ref">
7 <template>
8 <style>
9 .member {
10 vertical-align: top;
11 padding: 0 0 0 1em;
12 }
13 </style>
14 <div>
15 <template if="{{ isUnexpectedRef(ref['type']) }}">
16 unexpected reference type &lt;{{ ref['type'] }}&gt;
17 </template>
18
19 <template if="{{ isNullRef(ref['type']) }}">
20 {{ name }}
21 </template>
22
23 <template if="{{ (isStringRef(ref['type']) ||
24 isBoolRef(ref['type']) ||
25 isIntRef(ref['type'])) }}">
26 <a href="{{ url }}">{{ name }}</a>
27 </template>
28
29 <template if="{{ isClosureRef(ref['type']) }}">
30 <a href="{{ url }}">
31 {{ ref['closureFunc']['user_name'] }}
32 </a>
33 </template>
34
35 <template if="{{ isInstanceRef(ref['type']) }}">
36 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a>
37 <curly-block callback="{{ expander() }}">
38 <table>
39 <tr template repeat="{{ field in ref['fields'] }}">
40 <td class="member">{{ field['decl']['user_name'] }}</td>
41 <td class="member">
42 <instance-ref app="{{ app }}" ref="{{ field['value'] }}"></insta nce-ref>
43 </td>
44 </tr>
45 </table>
46 </curly-block>
47 </template>
48
49 <template if="{{ isListRef(ref['type']) }}">
50 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em> ({{ ref['le ngth']}})</a>
51 <curly-block callback="{{ expander() }}">
52 <table>
53 <tr template repeat="{{ element in ref['elements'] }}">
54 <td class="member">[{{ element['index']}}]</td>
55 <td class="member">
56 <instance-ref app="{{ app }}" ref="{{ element['value'] }}"></ins tance-ref>
57 </td>
58 </tr>
59 </table>
60 </curly-block>
61 </template>
62
63 </div>
64 </template>
65 <script type="application/dart" src="instance_ref.dart"></script>
66 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698