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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/code_view.dart

Issue 50243002: Extend Observatory to display libraries, classes, fields, functions and code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/client/lib/src/observatory_elements/code_view.dart
diff --git a/runtime/bin/vmservice/client/lib/src/observatory_elements/code_view.dart b/runtime/bin/vmservice/client/lib/src/observatory_elements/code_view.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d342ce369dfb291ea699938845b9ea1ba9bb6b60
--- /dev/null
+++ b/runtime/bin/vmservice/client/lib/src/observatory_elements/code_view.dart
@@ -0,0 +1,21 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// 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 code_view_element;
+
+import 'package:polymer/polymer.dart';
+import 'observatory_element.dart';
+
+@CustomTag('code-view')
+class CodeViewElement extends ObservatoryElement {
+ @published Map code = toObservable({});
+ CodeViewElement.created() : super.created();
+
+ String get cssPanelClass {
+ if (code != null && code['is_optimized'] != null) {
+ return 'panel panel-success';
+ }
+ return 'panel panel-warning';
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698