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

Side by Side Diff: runtime/observatory/lib/src/elements/script_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 library script_view; 5 library script_view;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'package:observatory/models.dart' as M; 9 import 'package:observatory/models.dart' as M;
10 import 'package:observatory/src/elements/context_ref.dart'; 10 import 'package:observatory/src/elements/context_ref.dart';
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 M.VM _vm; 46 M.VM _vm;
47 M.IsolateRef _isolate; 47 M.IsolateRef _isolate;
48 M.EventRepository _events; 48 M.EventRepository _events;
49 M.NotificationRepository _notifications; 49 M.NotificationRepository _notifications;
50 M.Script _script; 50 M.Script _script;
51 M.ScriptRepository _scripts; 51 M.ScriptRepository _scripts;
52 M.RetainedSizeRepository _retainedSizes; 52 M.RetainedSizeRepository _retainedSizes;
53 M.ReachableSizeRepository _reachableSizes; 53 M.ReachableSizeRepository _reachableSizes;
54 M.InboundReferencesRepository _references; 54 M.InboundReferencesRepository _references;
55 M.RetainingPathRepository _retainingPaths; 55 M.RetainingPathRepository _retainingPaths;
56 M.InstanceRepository _instances; 56 M.ObjectRepository _objects;
57 int _pos; 57 int _pos;
58 58
59 M.VMRef get vm => _vm; 59 M.VMRef get vm => _vm;
60 M.IsolateRef get isolate => _isolate; 60 M.IsolateRef get isolate => _isolate;
61 M.NotificationRepository get notifications => _notifications; 61 M.NotificationRepository get notifications => _notifications;
62 M.Script get script => _script; 62 M.Script get script => _script;
63 63
64 factory ScriptViewElement( 64 factory ScriptViewElement(
65 M.VM vm, 65 M.VM vm,
66 M.IsolateRef isolate, 66 M.IsolateRef isolate,
67 M.Script script, 67 M.Script script,
68 M.EventRepository events, 68 M.EventRepository events,
69 M.NotificationRepository notifications, 69 M.NotificationRepository notifications,
70 M.ScriptRepository scripts, 70 M.ScriptRepository scripts,
71 M.RetainedSizeRepository retainedSizes, 71 M.RetainedSizeRepository retainedSizes,
72 M.ReachableSizeRepository reachableSizes, 72 M.ReachableSizeRepository reachableSizes,
73 M.InboundReferencesRepository references, 73 M.InboundReferencesRepository references,
74 M.RetainingPathRepository retainingPaths, 74 M.RetainingPathRepository retainingPaths,
75 M.InstanceRepository instances, 75 M.ObjectRepository objects,
76 {int pos, 76 {int pos,
77 RenderingQueue queue}) { 77 RenderingQueue queue}) {
78 assert(vm != null); 78 assert(vm != null);
79 assert(isolate != null); 79 assert(isolate != null);
80 assert(events != null); 80 assert(events != null);
81 assert(notifications != null); 81 assert(notifications != null);
82 assert(script != null); 82 assert(script != null);
83 assert(scripts != null); 83 assert(scripts != null);
84 assert(retainedSizes != null); 84 assert(retainedSizes != null);
85 assert(reachableSizes != null); 85 assert(reachableSizes != null);
86 assert(references != null); 86 assert(references != null);
87 assert(retainingPaths != null); 87 assert(retainingPaths != null);
88 assert(instances != null); 88 assert(objects != null);
89 ScriptViewElement e = document.createElement(tag.name); 89 ScriptViewElement e = document.createElement(tag.name);
90 e._r = new RenderingScheduler(e, queue: queue); 90 e._r = new RenderingScheduler(e, queue: queue);
91 e._vm = vm; 91 e._vm = vm;
92 e._isolate = isolate; 92 e._isolate = isolate;
93 e._events = events; 93 e._events = events;
94 e._notifications = notifications; 94 e._notifications = notifications;
95 e._script = script; 95 e._script = script;
96 e._scripts = scripts; 96 e._scripts = scripts;
97 e._retainedSizes = retainedSizes; 97 e._retainedSizes = retainedSizes;
98 e._reachableSizes = reachableSizes; 98 e._reachableSizes = reachableSizes;
99 e._references = references; 99 e._references = references;
100 e._retainingPaths = retainingPaths; 100 e._retainingPaths = retainingPaths;
101 e._instances = instances; 101 e._objects = objects;
102 e._pos = pos; 102 e._pos = pos;
103 return e; 103 return e;
104 } 104 }
105 105
106 ScriptViewElement.created() : super.created(); 106 ScriptViewElement.created() : super.created();
107 107
108 @override 108 @override
109 attached() { 109 attached() {
110 super.attached(); 110 super.attached();
111 _r.enable(); 111 _r.enable();
(...skipping 21 matching lines...) Expand all
133 _r.dirty(); 133 _r.dirty();
134 }), 134 }),
135 new NavNotifyElement(_notifications, queue: _r.queue) 135 new NavNotifyElement(_notifications, queue: _r.queue)
136 ]), 136 ]),
137 new DivElement() 137 new DivElement()
138 ..classes = ['content-centered-big'] 138 ..classes = ['content-centered-big']
139 ..children = [ 139 ..children = [
140 new HeadingElement.h2()..text = 'Script', 140 new HeadingElement.h2()..text = 'Script',
141 new HRElement(), 141 new HRElement(),
142 new ObjectCommonElement(_isolate, _script, _retainedSizes, 142 new ObjectCommonElement(_isolate, _script, _retainedSizes,
143 _reachableSizes, _references, _retainingPaths, _instances, 143 _reachableSizes, _references, _retainingPaths, _objects,
144 queue: _r.queue), 144 queue: _r.queue),
145 new BRElement(), 145 new BRElement(),
146 new DivElement() 146 new DivElement()
147 ..classes = ['memberList'] 147 ..classes = ['memberList']
148 ..children = [ 148 ..children = [
149 new DivElement() 149 new DivElement()
150 ..classes = ['memberItem'] 150 ..classes = ['memberItem']
151 ..children = [ 151 ..children = [
152 new DivElement() 152 new DivElement()
153 ..classes = ['memberName'] 153 ..classes = ['memberName']
154 ..text = 'load time', 154 ..text = 'load time',
155 new DivElement() 155 new DivElement()
156 ..classes = ['memberName'] 156 ..classes = ['memberName']
157 ..text = '${_script.loadTime}' 157 ..text = '${_script.loadTime}'
158 ], 158 ],
159 ], 159 ],
160 new HRElement(), 160 new HRElement(),
161 new ScriptInsetElement( 161 new ScriptInsetElement(_isolate, _script, _scripts, _objects, _events,
162 _isolate, _script, _scripts, _instances, _events,
163 currentPos: _pos, queue: _r.queue), 162 currentPos: _pos, queue: _r.queue),
164 new ViewFooterElement(queue: _r.queue) 163 new ViewFooterElement(queue: _r.queue)
165 ] 164 ]
166 ]; 165 ];
167 } 166 }
168 } 167 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698