OLD | NEW |
| (Empty) |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | |
2 <link rel="import" href="breakpoint_list.html"> | |
3 <link rel="import" href="class_view.html"> | |
4 <link rel="import" href="code_view.html"> | |
5 <link rel="import" href="context_view.html"> | |
6 <link rel="import" href="error_view.html"> | |
7 <link rel="import" href="field_view.html"> | |
8 <link rel="import" href="function_view.html"> | |
9 <link rel="import" href="heap_map.html"> | |
10 <link rel="import" href="heap_profile.html"> | |
11 <link rel="import" href="instance_view.html"> | |
12 <link rel="import" href="isolate_profile.html"> | |
13 <link rel="import" href="library_view.html"> | |
14 <link rel="import" href="observatory_element.html"> | |
15 <link rel="import" href="script_view.html"> | |
16 <link rel="import" href="vm_view.html"> | |
17 <polymer-element name="service-view" extends="observatory-element"> | |
18 <!-- This element explicitly manages the child elements to avoid setting | |
19 an observable property on the old element to an invalid type. --> | |
20 </polymer-element> | |
21 | |
22 <polymer-element name="trace-view" extends="observatory-element"> | |
23 <template> | |
24 <link rel="stylesheet" href="css/shared.css"> | |
25 | |
26 <template if="{{ tracer != null }}"> | |
27 <div class="memberList"> | |
28 <template repeat="{{ event in tracer.events }}"> | |
29 <div class="memberItem"> | |
30 <div class="memberSmall"> | |
31 {{ event.timeStamp }} | |
32 </div> | |
33 <div class="memberSmall"> | |
34 {{ event.message }} | |
35 <template if="{{ event.map != null }}"> | |
36 <br> | |
37 <map-viewer map="{{ event.map }}"></map-viewer> | |
38 </template> | |
39 </div> | |
40 </div> | |
41 </template> | |
42 </div> | |
43 <br> | |
44 <br> | |
45 <br> | |
46 </template> | |
47 </template> | |
48 </polymer-element> | |
49 | |
50 <polymer-element name="map-viewer" extends="observatory-element"> | |
51 <template> | |
52 <link rel="stylesheet" href="css/shared.css"> | |
53 | |
54 <template if="{{ map.length > 0 }}"> | |
55 <curly-block callback="{{ expander() }}"> | |
56 <template if="{{ expand }}"> | |
57 <div class="memberList"> | |
58 <template repeat="{{ key in map.keys }}"> | |
59 <div class="memberItem"> | |
60 <div class="memberSmall">{{ key }}</div> | |
61 <div class="memberSmall">:</div> | |
62 <div class="memberSmall"> | |
63 <template if="{{ isMap(map[key]) }}"> | |
64 <map-viewer map="{{ map[key] }}"></map-viewer> | |
65 </template> | |
66 <template if="{{ isList(map[key]) }}"> | |
67 <list-viewer list="{{ map[key] }}"></list-viewer> | |
68 </template> | |
69 <template if="{{ !isMap(map[key]) && !isList(map[key]) }}"> | |
70 {{ map[key] }} | |
71 </template> | |
72 </div> | |
73 </div> | |
74 </template> | |
75 </div> | |
76 </template> | |
77 </curly-block> | |
78 </template> | |
79 </template> | |
80 </polymer-element> | |
81 | |
82 <polymer-element name="list-viewer" extends="observatory-element"> | |
83 <template> | |
84 <link rel="stylesheet" href="css/shared.css"> | |
85 | |
86 <template if="{{ list.length > 0 }}"> | |
87 <curly-block callback="{{ expander() }}"> | |
88 <template if="{{ expand }}"> | |
89 <div class="memberList"> | |
90 <template repeat="{{ element in list }}"> | |
91 <div class="memberItem"> | |
92 <div class="memberSmall"> | |
93 <template if="{{ isMap(element) }}"> | |
94 <map-viewer map="{{ element }}"></map-viewer> | |
95 </template> | |
96 <template if="{{ isList(element) }}"> | |
97 <list-viewer list="{{ element }}"></list-viewer> | |
98 </template> | |
99 <template if="{{ !isMap(element) && !isList(element) }}"> | |
100 {{ element }} | |
101 </template> | |
102 </div> | |
103 </div> | |
104 </template> | |
105 </div> | |
106 </template> | |
107 </curly-block> | |
108 </template> | |
109 </template> | |
110 </polymer-element> | |
111 | |
112 <script type="application/dart" src="service_view.dart"></script> | |
OLD | NEW |