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

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

Issue 457803002: Initial UI for Metrics in Observatory (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="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 .errorBox { 10 .errorBox {
(...skipping 17 matching lines...) Expand all
28 28
29 <template if="{{ isSentinel(ref) }}"> 29 <template if="{{ isSentinel(ref) }}">
30 <div title="{{ hoverText }}">{{ ref['valueAsString'] }}</div> 30 <div title="{{ hoverText }}">{{ ref['valueAsString'] }}</div>
31 </template> 31 </template>
32 32
33 <template if="{{ (isString(ref) || 33 <template if="{{ (isString(ref) ||
34 isBool(ref) || 34 isBool(ref) ||
35 isNull(ref) || 35 isNull(ref) ||
36 isInt(ref)) || 36 isInt(ref)) ||
37 isDouble(ref)) }}"> 37 isDouble(ref)) }}">
38 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['valueAsString'] }}</a> 38 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref['valueAsString'] }}</a >
39 </template> 39 </template>
40 40
41 <template if="{{ (isType(ref)) }}"> 41 <template if="{{ (isType(ref)) }}">
42 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['user_name'] }}</a> 42 <a on-click="{{ goto }}" _href="{{ url }}">{{ ref['user_name'] }}</a>
43 </template> 43 </template>
44 44
45 <template if="{{ isInstance(ref) && 45 <template if="{{ isInstance(ref) &&
46 ref['closureFunc'] != null}}"> 46 ref['closureFunc'] != null}}">
47 <a on-click="{{ goto }}" href="{{ url }}"> 47 <a on-click="{{ goto }}" _href="{{ url }}">
48 <!-- TODO(turnidge): Switch this to fully-qualified function --> 48 <!-- TODO(turnidge): Switch this to fully-qualified function -->
49 {{ ref['closureFunc'].name }} 49 {{ ref['closureFunc'].name }}
50 </a> 50 </a>
51 </template> 51 </template>
52 52
53 <template if="{{ isInstance(ref) && 53 <template if="{{ isInstance(ref) &&
54 ref['closureFunc'] == null}}"> 54 ref['closureFunc'] == null}}">
55 <a on-click="{{ goto }}" href="{{ url }}"><em>{{ ref['class'].name }}</e m></a> 55 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref['class'].name }}</ em></a>
56 <curly-block callback="{{ expander() }}"> 56 <curly-block callback="{{ expander() }}">
57 <div class="memberList"> 57 <div class="memberList">
58 <template repeat="{{ field in ref['fields'] }}"> 58 <template repeat="{{ field in ref['fields'] }}">
59 <div class="memberItem"> 59 <div class="memberItem">
60 <div class="memberName"> 60 <div class="memberName">
61 {{ field['decl']['user_name'] }} 61 {{ field['decl']['user_name'] }}
62 </div> 62 </div>
63 <div class="memberValue"> 63 <div class="memberValue">
64 <instance-ref ref="{{ field['value'] }}"></instance-ref> 64 <instance-ref ref="{{ field['value'] }}"></instance-ref>
65 </div> 65 </div>
66 </div> 66 </div>
67 </template> 67 </template>
68 </div> 68 </div>
69 </curly-block> 69 </curly-block>
70 </template> 70 </template>
71 71
72 <template if="{{ isList(ref) }}"> 72 <template if="{{ isList(ref) }}">
73 <a on-click="{{ goto }}" href="{{ url }}"><em>{{ ref['class'].name }}</e m> ({{ ref['length']}})</a> 73 <a on-click="{{ goto }}" _href="{{ url }}"><em>{{ ref['class'].name }}</ em> ({{ ref['length']}})</a>
74 <curly-block callback="{{ expander() }}"> 74 <curly-block callback="{{ expander() }}">
75 <div class="memberList"> 75 <div class="memberList">
76 <template repeat="{{ element in ref['elements'] }}"> 76 <template repeat="{{ element in ref['elements'] }}">
77 <div class="memberItem"> 77 <div class="memberItem">
78 <div class="memberName">[{{ element['index']}}]</div> 78 <div class="memberName">[{{ element['index']}}]</div>
79 <div class="memberValue"> 79 <div class="memberValue">
80 <instance-ref ref="{{ element['value'] }}"></instance-ref> 80 <instance-ref ref="{{ element['value'] }}"></instance-ref>
81 </div> 81 </div>
82 </div> 82 </div>
83 </template> 83 </template>
84 </div> 84 </div>
85 </curly-block> 85 </curly-block>
86 </template> 86 </template>
87 </span> 87 </span>
88 </template> 88 </template>
89 </polymer-element> 89 </polymer-element>
90 90
91 <script type="application/dart" src="instance_ref.dart"></script> 91 <script type="application/dart" src="instance_ref.dart"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698