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

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

Issue 1463123002: - Display a pseudo-receiver for static function activations. (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
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/class_ref.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/class_ref.dart
diff --git a/runtime/observatory/lib/src/elements/class_ref.dart b/runtime/observatory/lib/src/elements/class_ref.dart
index 5eebe734d4d5bcf036608891bb9757d9677a2d1d..b8895c6d62adbcc832047e6f0a13797b9a2c45cd 100644
--- a/runtime/observatory/lib/src/elements/class_ref.dart
+++ b/runtime/observatory/lib/src/elements/class_ref.dart
@@ -4,23 +4,33 @@
library class_ref_element;
+import 'package:observatory/service.dart';
import 'package:polymer/polymer.dart';
import 'service_ref.dart';
+import 'dart:async';
@CustomTag('class-ref')
class ClassRefElement extends ServiceRefElement {
+ @observable bool asValue = false;
+
ClassRefElement.created() : super.created();
- refChanged(oldValue) {
- super.refChanged(oldValue);
- _updateShadowDom();
+ String makeExpandKey(String key) {
+ return '${expandKey}/${key}';
+ }
+
+ dynamic expander() {
+ return expandEvent;
}
- void _updateShadowDom() {
- clearShadowRoot();
- if (ref == null) {
- return;
+ void expandEvent(bool expand, Function onDone) {
+ if (expand) {
+ Class cls = ref;
+ cls.reload().then((result) {
+ return Future.wait(cls.fields.map((field) => field.reload()));
+ }).whenComplete(onDone);
+ } else {
+ onDone();
}
- insertLinkIntoShadowRoot(name, url, hoverText);
}
}
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/class_ref.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698