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

Side by Side Diff: runtime/observatory/lib/src/elements/instance_ref.html

Issue 1977873003: Allow users to see more elements of a list/map in Observatory. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix problems found during testing Created 4 years, 7 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
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="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 .indented { 10 .indented {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 <curly-block callback="{{ expander() }}" 81 <curly-block callback="{{ expander() }}"
82 expandKey="{{ expandKey }}"> 82 expandKey="{{ expandKey }}">
83 <div class="indented"> 83 <div class="indented">
84 <template repeat="{{ index in ref.elements.asMap().keys }}"> 84 <template repeat="{{ index in ref.elements.asMap().keys }}">
85 [ {{ index }} ]&nbsp;&nbsp; 85 [ {{ index }} ]&nbsp;&nbsp;
86 <any-service-ref ref="{{ ref.elements[index] }}" 86 <any-service-ref ref="{{ ref.elements[index] }}"
87 expandKey="{{ makeExpandKey(index.toString()) }}" > 87 expandKey="{{ makeExpandKey(index.toString()) }}" >
88 </any-service-ref><br> 88 </any-service-ref><br>
89 </template> 89 </template>
90 <template if="{{ ref.length != ref.elements.length }}"> 90 <template if="{{ ref.length != ref.elements.length }}">
91 <div><em>{{ ref.length - ref.elements.length }} omitted elements</ em></div> 91 <div>
92 <action-link callback="{{ showMore }}"
93 label="show next {{ref.elements.length}}">
94 </action-link>
95 </div>
92 </template> 96 </template>
93 </div> 97 </div>
94 </curly-block> 98 </curly-block>
95 </template> 99 </template>
96 100
97 <template if="{{ ref.isMap }}"> 101 <template if="{{ ref.isMap }}">
98 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> ({{ ref.length }})</a> 102 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> ({{ ref.length }})</a>
99 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> 103 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}">
100 <div class="indented"> 104 <div class="indented">
101 <template repeat="{{ association in ref.associations }}"> 105 <template repeat="{{ association in ref.associations }}">
102 [ <any-service-ref ref="{{ association['key'] }}" 106 [ <any-service-ref ref="{{ association['key'] }}"
103 expandKey="{{ makeExpandKey('key') }}"> 107 expandKey="{{ makeExpandKey('key') }}">
104 </any-service-ref> ]&nbsp;&nbsp; 108 </any-service-ref> ]&nbsp;&nbsp;
105 <any-service-ref ref="{{ association['value'] }}" 109 <any-service-ref ref="{{ association['value'] }}"
106 expandKey="{{ makeExpandKey('value') }}"> 110 expandKey="{{ makeExpandKey('value') }}">
107 </any-service-ref><br> 111 </any-service-ref><br>
108 </template> 112 </template>
109 <template if="{{ ref.length != ref.associations.length }}"> 113 <template if="{{ ref.length != ref.associations.length }}">
110 <div><em>{{ ref.length - ref.associations.length }} omitted associ ations</em></div> 114 <action-link callback="{{ showMore }}"
115 label="show next {{ref.associations.length}}">
116 </action-link>
111 </template> 117 </template>
112 </div> 118 </div>
113 </curly-block> 119 </curly-block>
114 </template> 120 </template>
115 121
116 <template if="{{ ref.isTypedData }}"> 122 <template if="{{ ref.isTypedData }}">
117 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> ({{ ref.length }})</a> 123 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> ({{ ref.length }})</a>
118 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> 124 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}">
119 <div class="indented"> 125 <div class="indented">
120 <template repeat="{{ index in ref.typedElements.asMap().keys }}"> 126 <template repeat="{{ index in ref.typedElements.asMap().keys }}">
121 [ {{ index }} ]&nbsp;&nbsp; 127 [ {{ index }} ]&nbsp;&nbsp;
122 {{ ref.typedElements[index].toString() }}<br> 128 {{ ref.typedElements[index].toString() }}<br>
123 </template> 129 </template>
124 <template if="{{ ref.length != ref.typedElements.length }}"> 130 <template if="{{ ref.length != ref.typedElements.length }}">
125 <div><em>{{ ref.length - ref.typedElements.length }} omitted eleme nts</em></div> 131 <action-link callback="{{ showMore }}"
132 label="show next {{ref.typedElements.length}}">
133 </action-link>
126 </template> 134 </template>
127 </div> 135 </div>
128 </curly-block> 136 </curly-block>
129 </template> 137 </template>
130 138
131 <template if="{{ ref.isMirrorReference }}"> 139 <template if="{{ ref.isMirrorReference }}">
132 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> </a> 140 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> </a>
133 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}"> 141 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}">
134 <div class="indented"> 142 <div class="indented">
135 &lt;referent&gt;&nbsp;:&nbsp; 143 &lt;referent&gt;&nbsp;:&nbsp;
(...skipping 17 matching lines...) Expand all
153 expandKey="{{ makeExpandKey('value') }}"> 161 expandKey="{{ makeExpandKey('value') }}">
154 </any-service-ref><br> 162 </any-service-ref><br>
155 </div> 163 </div>
156 </curly-block> 164 </curly-block>
157 </template> 165 </template>
158 </span> 166 </span>
159 </template> 167 </template>
160 </polymer-element> 168 </polymer-element>
161 169
162 <script type="application/dart" src="instance_ref.dart"></script> 170 <script type="application/dart" src="instance_ref.dart"></script>
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/instance_ref.dart ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698