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

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

Issue 1439893002: - Annotate instructions that load objects from the ObjectPool or Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/observatory/lib/src/elements/service_ref.dart
diff --git a/runtime/observatory/lib/src/elements/service_ref.dart b/runtime/observatory/lib/src/elements/service_ref.dart
index d823b867bebbe32e3fdf84f67a8cf5f8cb04b40f..979879528f8506a6f0fbd079ff1fa9be156957d5 100644
--- a/runtime/observatory/lib/src/elements/service_ref.dart
+++ b/runtime/observatory/lib/src/elements/service_ref.dart
@@ -56,6 +56,24 @@ class ServiceRefElement extends ObservatoryElement {
bool get nameIsEmpty {
return (name == null) || name.isEmpty;
}
+
+
+ @published bool expanded = false;
+ dynamic expander() {
+ return expandEvent;
+ }
+ void expandEvent(bool expand, Function onDone) {
+ if (expand) {
+ ref.reload().then((result) {
+ ref = result;
+ notifyPropertyChange(#ref, 0, 1);
+ expanded = true;
+ }).whenComplete(onDone);
+ } else {
+ expanded = false;
+ onDone();
+ }
+ }
}
« no previous file with comments | « runtime/observatory/lib/src/elements/function_view.html ('k') | runtime/observatory/lib/src/elements/service_ref.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698