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

Unified Diff: runtime/bin/vmservice/observatory/lib/src/elements/context_ref.html

Issue 532063002: Teach the Observatory about Contexts. Factor out object graph information from the instance view. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
Index: runtime/bin/vmservice/observatory/lib/src/elements/context_ref.html
diff --git a/runtime/bin/vmservice/observatory/lib/src/elements/context_ref.html b/runtime/bin/vmservice/observatory/lib/src/elements/context_ref.html
new file mode 100644
index 0000000000000000000000000000000000000000..deb767b67638fdbf377217575c51a0cc7ad9910d
--- /dev/null
+++ b/runtime/bin/vmservice/observatory/lib/src/elements/context_ref.html
@@ -0,0 +1,33 @@
+<link rel="import" href="../../../../packages/polymer/polymer.html">
+<link rel="import" href="curly_block.html">
+<link rel="import" href="observatory_element.html">
+<link rel="import" href="service_ref.html">
+
+<polymer-element name="context-ref" extends="service-ref">
+ <template>
+ <link rel="stylesheet" href="css/shared.css">
+ <span>
+ <a on-click="{{ goto }}" _href="{{ url }}"><em>Context</em> ({{ ref.length }})</a>
+ <curly-block callback="{{ expander() }}">
+ <div class="memberList">
+ <div class="memberItem">
+ <div class="memberName">parent</div>
+ <div class="memberValue">
+ <any-service-ref ref="{{ ref.parentContext }}"></any-service-ref>
+ </div>
+ </div>
+ <template repeat="{{ variable in ref.variables }}">
+ <div class="memberItem">
+ <div class="memberName">[{{ variable['index']}}]</div>
+ <div class="memberValue">
+ <any-service-ref ref="{{ variable['value'] }}"></any-service-ref>
+ </div>
+ </div>
+ </template>
+ </div>
+ </curly-block>
+ </span>
+ </template>
+</polymer-element>
+
+<script type="application/dart" src="context_ref.dart"></script>

Powered by Google App Engine
This is Rietveld 408576698