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

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

Issue 2244433003: Converted Observatory refs elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master Created 4 years, 4 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
(Empty)
1 <link rel="import" href="../../../../packages/polymer/polymer.html">
2
3 <link rel="import" href="service_ref.html">
4
5 <polymer-element name="instance-ref">
6 <template>
7 <link rel="stylesheet" href="css/shared.css">
8 <style>
9 .indented {
10 margin-left: 1.5em;
11 font: 400 14px 'Montserrat', sans-serif;
12 line-height: 150%;
13 }
14 .stackTraceBox {
15 margin-left: 1.5em;
16 background-color: #f5f5f5;
17 border: 1px solid #ccc;
18 padding: 10px;
19 font-family: consolas, courier, monospace;
20 font-size: 12px;
21 white-space: pre;
22 overflow-x: auto;
23 }
24 </style>
25 <span>
26 <template if="{{ ref.isSentinel }}">
27 <span title="{{ hoverText }}">{{ ref.valueAsString }}</span>
28 </template>
29
30 <template if="{{ ref.isBool || ref.isInt ||
31 ref.isDouble || ref.isSimdValue ||
32 ref.isNull }}">
33 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref.valueAsString }}</a>
34 </template>
35
36 <template if="{{ ref.isStackTrace }}">
37 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> </a>
38 <curly-block expandKey="{{ expandKey }}">
39 <div class="stackTraceBox">{{ ref.valueAsString }}</div>
40 </curly-block>
41 </template>
42
43 <template if="{{ ref.isString }}">
44 <a on-click="{{ goto }}" _href="{{ url }}">{{ asStringLiteral(ref.valueA sString, ref.valueAsStringIsTruncated) }}</a>
45 </template>
46
47
48 <template if="{{ ref.isAbstractType }}">
49 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref.name }}</a>
50 </template>
51
52 <template if="{{ ref.isClosure }}">
53 <a on-click="{{ goto }}" _href="{{ url }}">
54 <em>Closure</em> ({{ ref.function.qualifiedName }})
55 </a>
56 </template>
57
58 <template if="{{ ref.isRegExp }}">
59 <a on-click="{{ goto }}" _href="{{ url }}">
60 <em>{{ ref.clazz.name }}</em> ({{ ref.pattern.valueAsString }})
61 </a>
62 </template>
63
64 <template if="{{ ref.isPlainInstance }}">
65 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> </a>
66 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}">
67 <div class="indented">
68 <template repeat="{{ field in ref.fields }}">
69 {{ field['decl'].name }}&nbsp;:&nbsp;
70 <any-service-ref ref="{{ field['value'] }}"
71 expandKey="{{ makeExpandKey(field['decl'].name) } }">
72 </any-service-ref><br>
73 </template>
74 </div>
75 </curly-block>
76 </template>
77
78 <template if="{{ ref.isList }}">
79 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> ({{ ref.length }})</a>
80 <curly-block callback="{{ expander() }}"
81 expandKey="{{ expandKey }}">
82 <div class="indented">
83 <template repeat="{{ index in ref.elements.asMap().keys }}">
84 [ {{ index }} ]&nbsp;&nbsp;
85 <any-service-ref ref="{{ ref.elements[index] }}"
86 expandKey="{{ makeExpandKey(index.toString()) }}" >
87 </any-service-ref><br>
88 </template>
89 <template if="{{ ref.length != ref.elements.length }}">
90 <div>
91 <action-link callback="{{ showMore }}"
92 label="show next {{ref.elements.length}}">
93 </action-link>
94 </div>
95 </template>
96 </div>
97 </curly-block>
98 </template>
99
100 <template if="{{ ref.isMap }}">
101 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> ({{ ref.length }})</a>
102 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}">
103 <div class="indented">
104 <template repeat="{{ association in ref.associations }}">
105 [ <any-service-ref ref="{{ association['key'] }}"
106 expandKey="{{ makeExpandKey('key') }}">
107 </any-service-ref> ]&nbsp;&nbsp;
108 <any-service-ref ref="{{ association['value'] }}"
109 expandKey="{{ makeExpandKey('value') }}">
110 </any-service-ref><br>
111 </template>
112 <template if="{{ ref.length != ref.associations.length }}">
113 <action-link callback="{{ showMore }}"
114 label="show next {{ref.associations.length}}">
115 </action-link>
116 </template>
117 </div>
118 </curly-block>
119 </template>
120
121 <template if="{{ ref.isTypedData }}">
122 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> ({{ ref.length }})</a>
123 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}">
124 <div class="indented">
125 <template repeat="{{ index in ref.typedElements.asMap().keys }}">
126 [ {{ index }} ]&nbsp;&nbsp;
127 {{ ref.typedElements[index].toString() }}<br>
128 </template>
129 <template if="{{ ref.length != ref.typedElements.length }}">
130 <action-link callback="{{ showMore }}"
131 label="show next {{ref.typedElements.length}}">
132 </action-link>
133 </template>
134 </div>
135 </curly-block>
136 </template>
137
138 <template if="{{ ref.isMirrorReference }}">
139 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> </a>
140 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}">
141 <div class="indented">
142 &lt;referent&gt;&nbsp;:&nbsp;
143 <any-service-ref ref="{{ ref.referent }}"
144 expandKey="{{ makeExpandKey('referent') }}">
145 </any-service-ref>
146 </div>
147 </curly-block>
148 </template>
149
150 <template if="{{ ref.isWeakProperty }}">
151 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> </a>
152 <curly-block callback="{{ expander() }}" expandKey="{{ expandKey }}">
153 <div class="indented">
154 &lt;key&gt;&nbsp;:&nbsp;
155 <any-service-ref ref="{{ ref.key }}"
156 expandKey="{{ makeExpandKey('key') }}">
157 </any-service-ref><br>
158 &lt;value&gt;&nbsp;:&nbsp;
159 <any-service-ref ref="{{ ref.value }}"
160 expandKey="{{ makeExpandKey('value') }}">
161 </any-service-ref><br>
162 </div>
163 </curly-block>
164 </template>
165 </span>
166 </template>
167 </polymer-element>
168
169 <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/elements/instance_ref_wrapper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698