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

Side by Side Diff: runtime/observatory/lib/src/elements/icdata_view.dart

Issue 2873013004: Omnibus Observatory UI fixes: (Closed)
Patch Set: Created 3 years, 7 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
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'package:observatory/models.dart' as M; 7 import 'package:observatory/models.dart' as M;
8 import 'package:observatory/src/elements/curly_block.dart'; 8 import 'package:observatory/src/elements/curly_block.dart';
9 import 'package:observatory/src/elements/helpers/any_ref.dart'; 9 import 'package:observatory/src/elements/helpers/any_ref.dart';
10 import 'package:observatory/src/elements/helpers/nav_bar.dart'; 10 import 'package:observatory/src/elements/helpers/nav_bar.dart';
(...skipping 28 matching lines...) Expand all
39 M.VM _vm; 39 M.VM _vm;
40 M.IsolateRef _isolate; 40 M.IsolateRef _isolate;
41 M.EventRepository _events; 41 M.EventRepository _events;
42 M.NotificationRepository _notifications; 42 M.NotificationRepository _notifications;
43 M.ICData _icdata; 43 M.ICData _icdata;
44 M.ICDataRepository _icdatas; 44 M.ICDataRepository _icdatas;
45 M.RetainedSizeRepository _retainedSizes; 45 M.RetainedSizeRepository _retainedSizes;
46 M.ReachableSizeRepository _reachableSizes; 46 M.ReachableSizeRepository _reachableSizes;
47 M.InboundReferencesRepository _references; 47 M.InboundReferencesRepository _references;
48 M.RetainingPathRepository _retainingPaths; 48 M.RetainingPathRepository _retainingPaths;
49 M.InstanceRepository _instances; 49 M.ObjectRepository _objects;
50 50
51 M.VMRef get vm => _vm; 51 M.VMRef get vm => _vm;
52 M.IsolateRef get isolate => _isolate; 52 M.IsolateRef get isolate => _isolate;
53 M.NotificationRepository get notifications => _notifications; 53 M.NotificationRepository get notifications => _notifications;
54 M.ICData get icdata => _icdata; 54 M.ICData get icdata => _icdata;
55 55
56 factory ICDataViewElement( 56 factory ICDataViewElement(
57 M.VM vm, 57 M.VM vm,
58 M.IsolateRef isolate, 58 M.IsolateRef isolate,
59 M.ICData icdata, 59 M.ICData icdata,
60 M.EventRepository events, 60 M.EventRepository events,
61 M.NotificationRepository notifications, 61 M.NotificationRepository notifications,
62 M.ICDataRepository icdatas, 62 M.ICDataRepository icdatas,
63 M.RetainedSizeRepository retainedSizes, 63 M.RetainedSizeRepository retainedSizes,
64 M.ReachableSizeRepository reachableSizes, 64 M.ReachableSizeRepository reachableSizes,
65 M.InboundReferencesRepository references, 65 M.InboundReferencesRepository references,
66 M.RetainingPathRepository retainingPaths, 66 M.RetainingPathRepository retainingPaths,
67 M.InstanceRepository instances, 67 M.ObjectRepository objects,
68 {RenderingQueue queue}) { 68 {RenderingQueue queue}) {
69 assert(vm != null); 69 assert(vm != null);
70 assert(isolate != null); 70 assert(isolate != null);
71 assert(events != null); 71 assert(events != null);
72 assert(notifications != null); 72 assert(notifications != null);
73 assert(icdata != null); 73 assert(icdata != null);
74 assert(icdatas != null); 74 assert(icdatas != null);
75 assert(retainedSizes != null); 75 assert(retainedSizes != null);
76 assert(reachableSizes != null); 76 assert(reachableSizes != null);
77 assert(references != null); 77 assert(references != null);
78 assert(retainingPaths != null); 78 assert(retainingPaths != null);
79 assert(instances != null); 79 assert(objects != null);
80 ICDataViewElement e = document.createElement(tag.name); 80 ICDataViewElement e = document.createElement(tag.name);
81 e._r = new RenderingScheduler(e, queue: queue); 81 e._r = new RenderingScheduler(e, queue: queue);
82 e._vm = vm; 82 e._vm = vm;
83 e._isolate = isolate; 83 e._isolate = isolate;
84 e._events = events; 84 e._events = events;
85 e._notifications = notifications; 85 e._notifications = notifications;
86 e._icdata = icdata; 86 e._icdata = icdata;
87 e._icdatas = icdatas; 87 e._icdatas = icdatas;
88 e._retainedSizes = retainedSizes; 88 e._retainedSizes = retainedSizes;
89 e._reachableSizes = reachableSizes; 89 e._reachableSizes = reachableSizes;
90 e._references = references; 90 e._references = references;
91 e._retainingPaths = retainingPaths; 91 e._retainingPaths = retainingPaths;
92 e._instances = instances; 92 e._objects = objects;
93 return e; 93 return e;
94 } 94 }
95 95
96 ICDataViewElement.created() : super.created(); 96 ICDataViewElement.created() : super.created();
97 97
98 @override 98 @override
99 attached() { 99 attached() {
100 super.attached(); 100 super.attached();
101 _r.enable(); 101 _r.enable();
102 } 102 }
(...skipping 19 matching lines...) Expand all
122 _r.dirty(); 122 _r.dirty();
123 }), 123 }),
124 new NavNotifyElement(_notifications, queue: _r.queue) 124 new NavNotifyElement(_notifications, queue: _r.queue)
125 ]), 125 ]),
126 new DivElement() 126 new DivElement()
127 ..classes = ['content-centered-big'] 127 ..classes = ['content-centered-big']
128 ..children = [ 128 ..children = [
129 new HeadingElement.h2()..text = 'ICData', 129 new HeadingElement.h2()..text = 'ICData',
130 new HRElement(), 130 new HRElement(),
131 new ObjectCommonElement(_isolate, _icdata, _retainedSizes, 131 new ObjectCommonElement(_isolate, _icdata, _retainedSizes,
132 _reachableSizes, _references, _retainingPaths, _instances, 132 _reachableSizes, _references, _retainingPaths, _objects,
133 queue: _r.queue), 133 queue: _r.queue),
134 new DivElement() 134 new DivElement()
135 ..classes = ['memberList'] 135 ..classes = ['memberList']
136 ..children = [ 136 ..children = [
137 new DivElement() 137 new DivElement()
138 ..classes = ['memberItem'] 138 ..classes = ['memberItem']
139 ..children = [ 139 ..children = [
140 new DivElement() 140 new DivElement()
141 ..classes = ['memberName'] 141 ..classes = ['memberName']
142 ..text = 'selector', 142 ..text = 'selector',
143 new DivElement() 143 new DivElement()
144 ..classes = ['memberName'] 144 ..classes = ['memberName']
145 ..text = _icdata.selector 145 ..text = _icdata.selector
146 ], 146 ],
147 new DivElement() 147 new DivElement()
148 ..classes = ['memberItem'] 148 ..classes = ['memberItem']
149 ..children = [ 149 ..children = [
150 new DivElement() 150 new DivElement()
151 ..classes = ['memberName'] 151 ..classes = ['memberName']
152 ..text = 'owner', 152 ..text = 'owner',
153 new DivElement() 153 new DivElement()
154 ..classes = ['memberName'] 154 ..classes = ['memberName']
155 ..children = [ 155 ..children = [
156 _icdata.dartOwner == null 156 _icdata.dartOwner == null
157 ? (new SpanElement()..text = '<none>') 157 ? (new SpanElement()..text = '<none>')
158 : anyRef(_isolate, _icdata.dartOwner, _instances, 158 : anyRef(_isolate, _icdata.dartOwner, _objects,
159 queue: _r.queue) 159 queue: _r.queue)
160 ] 160 ]
161 ], 161 ],
162 new DivElement() 162 new DivElement()
163 ..classes = ['memberItem'] 163 ..classes = ['memberItem']
164 ..children = [ 164 ..children = [
165 new DivElement() 165 new DivElement()
166 ..classes = ['memberName'] 166 ..classes = ['memberName']
167 ..text = 'argumentsDescriptor', 167 ..text = 'argumentsDescriptor',
168 new DivElement() 168 new DivElement()
169 ..classes = ['memberName'] 169 ..classes = ['memberName']
170 ..children = [ 170 ..children = [
171 _icdata.argumentsDescriptor == null 171 _icdata.argumentsDescriptor == null
172 ? (new SpanElement()..text = '<none>') 172 ? (new SpanElement()..text = '<none>')
173 : anyRef( 173 : anyRef(
174 _isolate, _icdata.argumentsDescriptor, _instances, 174 _isolate, _icdata.argumentsDescriptor, _objects,
175 queue: _r.queue) 175 queue: _r.queue)
176 ] 176 ]
177 ], 177 ],
178 new DivElement() 178 new DivElement()
179 ..classes = ['memberItem'] 179 ..classes = ['memberItem']
180 ..children = [ 180 ..children = [
181 new DivElement() 181 new DivElement()
182 ..classes = ['memberName'] 182 ..classes = ['memberName']
183 ..text = 'entries', 183 ..text = 'entries',
184 new DivElement() 184 new DivElement()
185 ..classes = ['memberName'] 185 ..classes = ['memberName']
186 ..children = [ 186 ..children = [
187 _icdata.entries == null 187 _icdata.entries == null
188 ? (new SpanElement()..text = '<none>') 188 ? (new SpanElement()..text = '<none>')
189 : anyRef(_isolate, _icdata.entries, _instances, 189 : anyRef(_isolate, _icdata.entries, _objects,
190 queue: _r.queue) 190 queue: _r.queue)
191 ] 191 ]
192 ] 192 ]
193 ], 193 ],
194 new HRElement(), 194 new HRElement(),
195 new ViewFooterElement(queue: _r.queue) 195 new ViewFooterElement(queue: _r.queue)
196 ] 196 ]
197 ]; 197 ];
198 } 198 }
199 } 199 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698