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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/instance_ref.html

Issue 215213003: Rework the <field-view> page. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 <head> 1 <head>
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 </head> 5 </head>
6 <polymer-element name="instance-ref" extends="service-ref"> 6 <polymer-element name="instance-ref" extends="service-ref">
7 <template> 7 <template>
8 <style> 8 <style>
9 .memberList { 9 .memberList {
10 display: table; 10 display: table;
(...skipping 25 matching lines...) Expand all
36 isBool(ref.serviceType) || 36 isBool(ref.serviceType) ||
37 isInt(ref.serviceType)) || 37 isInt(ref.serviceType)) ||
38 isDouble(ref.serviceType)) }}"> 38 isDouble(ref.serviceType)) }}">
39 <a href="{{ url }}">{{ ref['preview'] }}</a> 39 <a href="{{ url }}">{{ ref['preview'] }}</a>
40 </template> 40 </template>
41 41
42 <template if="{{ (isType(ref.serviceType)) }}"> 42 <template if="{{ (isType(ref.serviceType)) }}">
43 <a href="{{ url }}">{{ ref['user_name'] }}</a> 43 <a href="{{ url }}">{{ ref['user_name'] }}</a>
44 </template> 44 </template>
45 45
46 <template if="{{ isClosure(ref.serviceType) }}"> 46 <template if="{{ isInstance(ref.serviceType) &&
47 ref['closureFunc'] != null}}">
47 <a href="{{ url }}"> 48 <a href="{{ url }}">
48 <!-- TODO(turnidge): Switch this to fully-qualified function --> 49 <!-- TODO(turnidge): Switch this to fully-qualified function -->
49 {{ ref['closureFunc']['user_name'] }} 50 {{ ref['closureFunc']['user_name'] }}
50 </a> 51 </a>
51 </template> 52 </template>
52 53
53 <template if="{{ isInstance(ref.serviceType) }}"> 54 <template if="{{ isInstance(ref.serviceType) &&
55 ref['closureFunc'] == null}}">
54 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> 56 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a>
55 <curly-block callback="{{ expander() }}"> 57 <curly-block callback="{{ expander() }}">
56 <div class="memberList"> 58 <div class="memberList">
57 <template repeat="{{ field in ref['fields'] }}"> 59 <template repeat="{{ field in ref['fields'] }}">
58 <div class="memberItem"> 60 <div class="memberItem">
59 <div class="memberName"> 61 <div class="memberName">
60 {{ field['decl']['user_name'] }} 62 {{ field['decl']['user_name'] }}
61 </div> 63 </div>
62 <div class="memberValue"> 64 <div class="memberValue">
63 <instance-ref ref="{{ field['value'] }}"></instance-ref> 65 <instance-ref ref="{{ field['value'] }}"></instance-ref>
(...skipping 16 matching lines...) Expand all
80 </div> 82 </div>
81 </div> 83 </div>
82 </template> 84 </template>
83 </div> 85 </div>
84 </curly-block> 86 </curly-block>
85 </template> 87 </template>
86 </span> 88 </span>
87 </template> 89 </template>
88 <script type="application/dart" src="instance_ref.dart"></script> 90 <script type="application/dart" src="instance_ref.dart"></script>
89 </polymer-element> 91 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698