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

Unified Diff: runtime/observatory/lib/src/elements/instance_ref.dart

Issue 2970443002: Disable expansion of VirtualTree and VirtualCollection items (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/observatory/lib/src/elements/helpers/any_ref.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/instance_ref.dart
diff --git a/runtime/observatory/lib/src/elements/instance_ref.dart b/runtime/observatory/lib/src/elements/instance_ref.dart
index e1a112ce439b992344bdfd3e2b5375f4c4ebb5b4..45737fafe6e476a61ff6416c8309f8570a7ba6bd 100644
--- a/runtime/observatory/lib/src/elements/instance_ref.dart
+++ b/runtime/observatory/lib/src/elements/instance_ref.dart
@@ -25,6 +25,7 @@ class InstanceRefElement extends HtmlElement implements Renderable {
M.InstanceRef _instance;
M.ObjectRepository _objects;
M.Instance _loadedInstance;
+ bool _expandable;
bool _expanded = false;
M.IsolateRef get isolate => _isolate;
@@ -32,7 +33,7 @@ class InstanceRefElement extends HtmlElement implements Renderable {
factory InstanceRefElement(
M.IsolateRef isolate, M.InstanceRef instance, M.ObjectRepository objects,
- {RenderingQueue queue}) {
+ {RenderingQueue queue, bool expandable: true}) {
assert(isolate != null);
assert(instance != null);
assert(objects != null);
@@ -41,6 +42,7 @@ class InstanceRefElement extends HtmlElement implements Renderable {
e._isolate = isolate;
e._instance = instance;
e._objects = objects;
+ e._expandable = expandable;
return e;
}
@@ -62,7 +64,7 @@ class InstanceRefElement extends HtmlElement implements Renderable {
void render() {
final content = _createLink();
- if (_hasValue()) {
+ if (_expandable && _hasValue()) {
content.addAll([
new SpanElement()..text = ' ',
new CurlyBlockElement(expanded: _expanded, queue: _r.queue)
« no previous file with comments | « runtime/observatory/lib/src/elements/helpers/any_ref.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698