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

Unified Diff: runtime/bin/vmservice/client/deployed/web/packages/observatory/src/elements/eval_link.html

Issue 213853004: Add <eval-link> - a custom element for evaluating an expression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 years, 9 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/deployed/web/packages/observatory/src/elements/eval_link.html
diff --git a/runtime/bin/vmservice/client/deployed/web/packages/observatory/src/elements/eval_link.html b/runtime/bin/vmservice/client/deployed/web/packages/observatory/src/elements/eval_link.html
new file mode 100644
index 0000000000000000000000000000000000000000..8de2c84d1929f594fc00a2e11dbb2bb4b7821015
--- /dev/null
+++ b/runtime/bin/vmservice/client/deployed/web/packages/observatory/src/elements/eval_link.html
@@ -0,0 +1,29 @@
+<head>
+ <link rel="import" href="instance_ref.html">
+</head>
+<polymer-element name="eval-link">
+ <template>
+ <style>
+ .idle {
+ color: #0489c3;
+ cursor: pointer;
+ }
+ .busy {
+ color: #aaa;
+ cursor: wait;
+ }
+ </style>
+
+ <template if="{{ busy }}">
+ <span class="busy">[evaluate]</span>
+ </template>
+ <template if="{{ !busy }}">
+ <span class="idle"><a on-click="{{ evalNow }}">[evaluate]</a></span>
+ </template>
+ <template if="{{ result != null }}">
+ = <instance-ref ref="{{ result }}"></instance-ref>
+ </template>
+
+ </template>
+ <script type="application/dart" src="eval_link.dart"></script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698