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

Side by Side Diff: runtime/observatory/lib/src/elements/object_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/context_ref.dart'; 8 import 'package:observatory/src/elements/context_ref.dart';
9 import 'package:observatory/src/elements/curly_block.dart'; 9 import 'package:observatory/src/elements/curly_block.dart';
10 import 'package:observatory/src/elements/helpers/nav_bar.dart'; 10 import 'package:observatory/src/elements/helpers/nav_bar.dart';
(...skipping 29 matching lines...) Expand all
40 M.VM _vm; 40 M.VM _vm;
41 M.IsolateRef _isolate; 41 M.IsolateRef _isolate;
42 M.EventRepository _events; 42 M.EventRepository _events;
43 M.NotificationRepository _notifications; 43 M.NotificationRepository _notifications;
44 M.Object _object; 44 M.Object _object;
45 M.ObjectRepository _objects; 45 M.ObjectRepository _objects;
46 M.RetainedSizeRepository _retainedSizes; 46 M.RetainedSizeRepository _retainedSizes;
47 M.ReachableSizeRepository _reachableSizes; 47 M.ReachableSizeRepository _reachableSizes;
48 M.InboundReferencesRepository _references; 48 M.InboundReferencesRepository _references;
49 M.RetainingPathRepository _retainingPaths; 49 M.RetainingPathRepository _retainingPaths;
50 M.InstanceRepository _instances;
51 50
52 M.VMRef get vm => _vm; 51 M.VMRef get vm => _vm;
53 M.IsolateRef get isolate => _isolate; 52 M.IsolateRef get isolate => _isolate;
54 M.NotificationRepository get notifications => _notifications; 53 M.NotificationRepository get notifications => _notifications;
55 M.Context get object => _object; 54 M.Context get object => _object;
56 55
57 factory ObjectViewElement( 56 factory ObjectViewElement(
58 M.VM vm, 57 M.VM vm,
59 M.IsolateRef isolate, 58 M.IsolateRef isolate,
60 M.Object object, 59 M.Object object,
61 M.EventRepository events, 60 M.EventRepository events,
62 M.NotificationRepository notifications, 61 M.NotificationRepository notifications,
63 M.ObjectRepository objects, 62 M.ObjectRepository objects,
64 M.RetainedSizeRepository retainedSizes, 63 M.RetainedSizeRepository retainedSizes,
65 M.ReachableSizeRepository reachableSizes, 64 M.ReachableSizeRepository reachableSizes,
66 M.InboundReferencesRepository references, 65 M.InboundReferencesRepository references,
67 M.RetainingPathRepository retainingPaths, 66 M.RetainingPathRepository retainingPaths,
68 M.InstanceRepository instances,
69 {RenderingQueue queue}) { 67 {RenderingQueue queue}) {
70 assert(vm != null); 68 assert(vm != null);
71 assert(isolate != null); 69 assert(isolate != null);
72 assert(events != null); 70 assert(events != null);
73 assert(notifications != null); 71 assert(notifications != null);
74 assert(object != null); 72 assert(object != null);
75 assert(objects != null); 73 assert(objects != null);
76 assert(retainedSizes != null); 74 assert(retainedSizes != null);
77 assert(reachableSizes != null); 75 assert(reachableSizes != null);
78 assert(references != null); 76 assert(references != null);
79 assert(retainingPaths != null); 77 assert(retainingPaths != null);
80 assert(instances != null);
81 ObjectViewElement e = document.createElement(tag.name); 78 ObjectViewElement e = document.createElement(tag.name);
82 e._r = new RenderingScheduler(e, queue: queue); 79 e._r = new RenderingScheduler(e, queue: queue);
83 e._vm = vm; 80 e._vm = vm;
84 e._isolate = isolate; 81 e._isolate = isolate;
85 e._events = events; 82 e._events = events;
86 e._notifications = notifications; 83 e._notifications = notifications;
87 e._object = object; 84 e._object = object;
88 e._objects = objects; 85 e._objects = objects;
89 e._retainedSizes = retainedSizes; 86 e._retainedSizes = retainedSizes;
90 e._reachableSizes = reachableSizes; 87 e._reachableSizes = reachableSizes;
91 e._references = references; 88 e._references = references;
92 e._retainingPaths = retainingPaths; 89 e._retainingPaths = retainingPaths;
93 e._instances = instances;
94 return e; 90 return e;
95 } 91 }
96 92
97 ObjectViewElement.created() : super.created(); 93 ObjectViewElement.created() : super.created();
98 94
99 @override 95 @override
100 attached() { 96 attached() {
101 super.attached(); 97 super.attached();
102 _r.enable(); 98 _r.enable();
103 } 99 }
(...skipping 19 matching lines...) Expand all
123 _r.dirty(); 119 _r.dirty();
124 }), 120 }),
125 new NavNotifyElement(_notifications, queue: _r.queue) 121 new NavNotifyElement(_notifications, queue: _r.queue)
126 ]), 122 ]),
127 new DivElement() 123 new DivElement()
128 ..classes = ['content-centered-big'] 124 ..classes = ['content-centered-big']
129 ..children = [ 125 ..children = [
130 new HeadingElement.h2()..text = 'Object', 126 new HeadingElement.h2()..text = 'Object',
131 new HRElement(), 127 new HRElement(),
132 new ObjectCommonElement(_isolate, _object, _retainedSizes, 128 new ObjectCommonElement(_isolate, _object, _retainedSizes,
133 _reachableSizes, _references, _retainingPaths, _instances, 129 _reachableSizes, _references, _retainingPaths, _objects,
134 queue: _r.queue), 130 queue: _r.queue),
135 new HRElement(), 131 new HRElement(),
136 new ViewFooterElement(queue: _r.queue) 132 new ViewFooterElement(queue: _r.queue)
137 ] 133 ]
138 ]; 134 ];
139 } 135 }
140 } 136 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/object_common.dart ('k') | runtime/observatory/lib/src/elements/objectpool_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698