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

Side by Side Diff: runtime/bin/vmservice/observatory/lib/src/elements/class_view.html

Issue 511413002: Revert "Give instances their own model class; move DartErrors out of instance-ref into their own er… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 <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="eval_box.html"> 3 <link rel="import" href="eval_box.html">
4 <link rel="import" href="eval_link.html"> 4 <link rel="import" href="eval_link.html">
5 <link rel="import" href="field_ref.html"> 5 <link rel="import" href="field_ref.html">
6 <link rel="import" href="function_ref.html"> 6 <link rel="import" href="function_ref.html">
7 <link rel="import" href="instance_ref.html"> 7 <link rel="import" href="instance_ref.html">
8 <link rel="import" href="library_ref.html"> 8 <link rel="import" href="library_ref.html">
9 <link rel="import" href="nav_bar.html"> 9 <link rel="import" href="nav_bar.html">
10 <link rel="import" href="observatory_element.html"> 10 <link rel="import" href="observatory_element.html">
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 <template if="{{ cls.name != cls.vmName }}"> 85 <template if="{{ cls.name != cls.vmName }}">
86 <div class="memberItem"> 86 <div class="memberItem">
87 <div class="memberName">vm name</div> 87 <div class="memberName">vm name</div>
88 <div class="memberValue">{{ cls.vmName }}</div> 88 <div class="memberValue">{{ cls.vmName }}</div>
89 </div> 89 </div>
90 </template> 90 </template>
91 </div> 91 </div>
92 </div> 92 </div>
93 93
94 <template if="{{ cls.error != null }}"> 94 <template if="{{ cls.error != null }}">
95 <error-ref ref="{{ cls.error }}"></error> 95 <!-- TODO(turnidge): Don't use instance-ref for error display here -->
96 <instance-ref ref="{{ cls.error }}"></instance-ref>
96 </template> 97 </template>
97 98
98 <hr> 99 <hr>
99 100
100 <div class="content"> 101 <div class="content">
101 <template if="{{ cls.fields.isNotEmpty }}"> 102 <template if="{{ cls.fields.isNotEmpty }}">
102 fields ({{ cls.fields.length }}) 103 fields ({{ cls.fields.length }})
103 <curly-block expand="{{ cls.fields.length <= 8 }}"> 104 <curly-block expand="{{ cls.fields.length <= 8 }}">
104 <div class="memberList"> 105 <div class="memberList">
105 <template repeat="{{ field in cls.fields }}"> 106 <template repeat="{{ field in cls.fields }}">
106 <div class="memberItem"> 107 <div class="memberItem">
107 <div class="memberName"> 108 <div class="memberName">
108 <field-ref ref="{{ field }}"></field-ref> 109 <field-ref ref="{{ field }}"></field-ref>
109 </div> 110 </div>
110 <div class="memberValue"> 111 <div class="memberValue">
111 <template if="{{ field['value'] != null }}"> 112 <template if="{{ field['value'] != null }}">
112 <any-service-ref ref="{{ field['value'] }}"></any-service-re f> 113 <instance-ref ref="{{ field['value'] }}"></instance-ref>
113 </template> 114 </template>
114 </div> 115 </div>
115 </div> 116 </div>
116 </template> 117 </template>
117 </div> 118 </div>
118 </curly-block><br><br> 119 </curly-block><br><br>
119 </template> 120 </template>
120 121
121 <template if="{{ cls.functions.isNotEmpty }}"> 122 <template if="{{ cls.functions.isNotEmpty }}">
122 functions ({{ cls.functions.length }}) 123 functions ({{ cls.functions.length }})
(...skipping 24 matching lines...) Expand all
147 <div class="memberName">strongly reachable</div> 148 <div class="memberName">strongly reachable</div>
148 <div class="memberValue"> 149 <div class="memberValue">
149 <template if="{{ instances == null }}"> 150 <template if="{{ instances == null }}">
150 <eval-link callback="{{ reachable }}" 151 <eval-link callback="{{ reachable }}"
151 label="[find]" 152 label="[find]"
152 expr="100"> 153 expr="100">
153 </eval-link> 154 </eval-link>
154 </template> 155 </template>
155 <template if="{{ instances != null }}"> 156 <template if="{{ instances != null }}">
156 sample 157 sample
157 <any-service-ref ref="{{ instances['sample'] }}"></any-service-r ef> 158 <instance-ref ref="{{ instances['sample'] }}"></instance-ref>
158 <template if="{{ instances['totalCount'] > instances['sampleCoun t'] }}"> 159 <template if="{{ instances['totalCount'] > instances['sampleCoun t'] }}">
159 <eval-link callback="{{ reachable }}" 160 <eval-link callback="{{ reachable }}"
160 label="[more]" 161 label="[more]"
161 expr="{{ instances['sampleCount'] * 2 }}"> 162 expr="{{ instances['sampleCount'] * 2 }}">
162 </eval-link> 163 </eval-link>
163 </template> 164 </template>
164 of total {{ instances['totalCount'] }} 165 of total {{ instances['totalCount'] }}
165 </template> 166 </template>
166 </div> 167 </div>
167 </div> 168 </div>
(...skipping 24 matching lines...) Expand all
192 startPos="{{ cls.tokenPos }}" 193 startPos="{{ cls.tokenPos }}"
193 endPos="{{ cls.endTokenPos }}"> 194 endPos="{{ cls.endTokenPos }}">
194 </script-inset> 195 </script-inset>
195 196
196 <br><br><br><br> 197 <br><br><br><br>
197 <br><br><br><br> 198 <br><br><br><br>
198 </template> 199 </template>
199 </polymer-element> 200 </polymer-element>
200 201
201 <script type="application/dart" src="class_view.dart"></script> 202 <script type="application/dart" src="class_view.dart"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698