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

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

Issue 839543002: Revert "Build Observatory with runtime" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 <link rel="import" href="../../../../packages/polymer/polymer.html">
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
6 <polymer-element name="instance-ref" extends="service-ref">
7 <template>
8 <link rel="stylesheet" href="css/shared.css">
9 <style>
10 .errorBox {
11 background-color: #f5f5f5;
12 border: 1px solid #ccc;
13 padding: 10px;
14 font-family: consolas, courier, monospace;
15 font-size: 1em;
16 line-height: 1.2em;
17 white-space: pre;
18 }
19 </style>
20 <span>
21 <template if="{{ ref.isSentinel }}">
22 <div title="{{ hoverText }}">{{ ref.valueAsString }}</div>
23 </template>
24
25 <template if="{{ ref.isBool || ref.isInt ||
26 ref.isDouble || ref.isNull }}">
27 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref.valueAsString }}</a>
28 </template>
29
30 <template if="{{ ref.isString }}">
31 <a on-click="{{ goto }}" _href="{{ url }}">{{ asStringLiteral(ref.valueA sString, ref.valueAsStringIsTruncated) }}</a>
32 </template>
33
34
35 <template if="{{ ref.isAbstractType }}">
36 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref.name }}</a>
37 </template>
38
39 <template if="{{ ref.isClosure }}">
40 <a on-click="{{ goto }}" _href="{{ url }}">
41 <!-- TODO(turnidge): Switch this to fully-qualified function -->
42 {{ ref.closureFunc.name }}
43 </a>
44 </template>
45
46 <template if="{{ ref.isPlainInstance }}">
47 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> </a>
48 <curly-block callback="{{ expander() }}">
49 <div class="memberList">
50 <template repeat="{{ field in ref.fields }}">
51 <div class="memberItem">
52 <div class="memberName">
53 {{ field['decl'].name }}
54 </div>
55 <div class="memberValue">
56 <any-service-ref ref="{{ field['value'] }}"></any-service-ref>
57 </div>
58 </div>
59 </template>
60 </div>
61 </curly-block>
62 </template>
63
64 <template if="{{ ref.isList }}">
65 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> ({{ ref.length }})</a>
66 <curly-block callback="{{ expander() }}">
67 <div class="memberList">
68 <template repeat="{{ element in ref.elements }}">
69 <div class="memberItem">
70 <div class="memberName">[{{ element['index']}}]</div>
71 <div class="memberValue">
72 <any-service-ref ref="{{ element['value'] }}"></any-service-re f>
73 </div>
74 </div>
75 </template>
76 </div>
77 </curly-block>
78 </template>
79
80 <template if="{{ ref.isMirrorReference }}">
81 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> </a>
82 <curly-block callback="{{ expander() }}">
83 <div class="memberList">
84 <div class="memberItem">
85 <div class="memberName">referent</div>
86 <div class="memberValue">
87 <any-service-ref ref="{{ ref.referent }}"></any-service-ref>
88 </div>
89 </div>
90 </div>
91 </curly-block>
92 </template>
93
94 <template if="{{ ref.isWeakProperty }}">
95 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref.clazz.name }}</em> </a>
96 <curly-block callback="{{ expander() }}">
97 <div class="memberList">
98 <div class="memberItem">
99 <div class="memberName">key</div>
100 <div class="memberValue">
101 <any-service-ref ref="{{ ref.key }}"></any-service-ref>
102 </div>
103 </div>
104 <div class="memberItem">
105 <div class="memberName">value</div>
106 <div class="memberValue">
107 <any-service-ref ref="{{ ref.value }}"></any-service-ref>
108 </div>
109 </div>
110 </div>
111 </curly-block>
112 </template>
113 </span>
114 </template>
115 </polymer-element>
116
117 <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_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698