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

Unified Diff: runtime/bin/vmservice/observatory/lib/src/elements/context_view.dart

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_view.dart
diff --git a/runtime/bin/vmservice/observatory/lib/src/elements/stack_trace.dart b/runtime/bin/vmservice/observatory/lib/src/elements/context_view.dart
similarity index 54%
copy from runtime/bin/vmservice/observatory/lib/src/elements/stack_trace.dart
copy to runtime/bin/vmservice/observatory/lib/src/elements/context_view.dart
index f92630eb2b8b516123da7287fcaa834a4fc28b81..fdc05ec811a905c9900fa98b999d894c749b3c16 100644
--- a/runtime/bin/vmservice/observatory/lib/src/elements/stack_trace.dart
+++ b/runtime/bin/vmservice/observatory/lib/src/elements/context_view.dart
@@ -2,19 +2,20 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library stack_trace_element;
+library context_view_element;
-import 'package:polymer/polymer.dart';
+import 'dart:async';
import 'observatory_element.dart';
import 'package:observatory/service.dart';
+import 'package:polymer/polymer.dart';
-@CustomTag('stack-trace')
-class StackTraceElement extends ObservatoryElement {
- @published ServiceMap trace;
+@CustomTag('context-view')
+class ContextViewElement extends ObservatoryElement {
+ @published Context context;
- StackTraceElement.created() : super.created();
+ ContextViewElement.created() : super.created();
- void refresh(var done) {
- trace.reload().whenComplete(done);
+ void refresh(Function onDone) {
+ context.reload().whenComplete(onDone);
}
}

Powered by Google App Engine
This is Rietveld 408576698