OLD | NEW |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
2 <link rel="import" href="curly_block.html"> | 2 <link rel="import" href="curly_block.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 | 5 |
6 <polymer-element name="instance-ref" extends="service-ref"> | 6 <polymer-element name="instance-ref" extends="service-ref"> |
7 <template> | 7 <template> |
8 <link rel="stylesheet" href="css/shared.css"> | 8 <link rel="stylesheet" href="css/shared.css"> |
9 <style> | 9 <style> |
10 .errorBox { | 10 .errorBox { |
11 background-color: #f5f5f5; | 11 background-color: #f5f5f5; |
12 border: 1px solid #ccc; | 12 border: 1px solid #ccc; |
13 padding: 10px; | 13 padding: 10px; |
14 font-family: consolas, courier, monospace; | 14 font-family: consolas, courier, monospace; |
15 font-size: 1em; | 15 font-size: 1em; |
16 line-height: 1.2em; | 16 line-height: 1.2em; |
17 white-space: pre; | 17 white-space: pre; |
18 } | 18 } |
19 </style> | 19 </style> |
20 <span> | 20 <span> |
21 <template if="{{ ref.isSentinel }}"> | 21 <template if="{{ ref.isSentinel }}"> |
22 <div title="{{ hoverText }}">{{ ref.valueAsString }}</div> | 22 <div title="{{ hoverText }}">{{ ref.valueAsString }}</div> |
23 </template> | 23 </template> |
24 | 24 |
25 <template if="{{ ref.isString || ref.isBool || ref.isInt || ref.isDouble |
| ref.isNull }}"> | 25 <template if="{{ ref.isString || ref.isBool || ref.isInt || |
| 26 ref.isDouble || ref.isNull }}"> |
26 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref.valueAsString }}</a> | 27 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref.valueAsString }}</a> |
27 </template> | 28 </template> |
28 | 29 |
29 <template if="{{ ref.isType }}"> | 30 <template if="{{ ref.isAbstractType }}"> |
30 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref.name }}</a> | 31 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref.name }}</a> |
31 </template> | 32 </template> |
32 | 33 |
33 <template if="{{ ref.isClosure }}"> | 34 <template if="{{ ref.isClosure }}"> |
34 <a on-click="{{ goto }}" _href="{{ url }}"> | 35 <a on-click="{{ goto }}" _href="{{ url }}"> |
35 <!-- TODO(turnidge): Switch this to fully-qualified function --> | 36 <!-- TODO(turnidge): Switch this to fully-qualified function --> |
36 {{ ref.closureFunc.name }} | 37 {{ ref.closureFunc.name }} |
37 </a> | 38 </a> |
38 </template> | 39 </template> |
39 | 40 |
40 <template if="{{ ref.isInstance && !ref.isClosure }}"> | 41 <template if="{{ ref.isPlainInstance }}"> |
41 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em>
</a> | 42 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em>
</a> |
42 <curly-block callback="{{ expander() }}"> | 43 <curly-block callback="{{ expander() }}"> |
43 <div class="memberList"> | 44 <div class="memberList"> |
44 <template repeat="{{ field in ref.fields }}"> | 45 <template repeat="{{ field in ref.fields }}"> |
45 <div class="memberItem"> | 46 <div class="memberItem"> |
46 <div class="memberName"> | 47 <div class="memberName"> |
47 {{ field['decl'].name }} | 48 {{ field['decl'].name }} |
48 </div> | 49 </div> |
49 <div class="memberValue"> | 50 <div class="memberValue"> |
50 <any-service-ref ref="{{ field['value'] }}"></any-service-ref> | 51 <any-service-ref ref="{{ field['value'] }}"></any-service-ref> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 </div> | 103 </div> |
103 </div> | 104 </div> |
104 </div> | 105 </div> |
105 </curly-block> | 106 </curly-block> |
106 </template> | 107 </template> |
107 </span> | 108 </span> |
108 </template> | 109 </template> |
109 </polymer-element> | 110 </polymer-element> |
110 | 111 |
111 <script type="application/dart" src="instance_ref.dart"></script> | 112 <script type="application/dart" src="instance_ref.dart"></script> |
OLD | NEW |