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

Unified Diff: runtime/bin/vmservice/client/deployed/web/index.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/index.html
diff --git a/runtime/bin/vmservice/client/deployed/web/index.html b/runtime/bin/vmservice/client/deployed/web/index.html
index 0fc4b80c9d02be0ba33fe09cc626819a17525485..10238eb9bf3bb3c8f317da6e6487cd5573f06800 100644
--- a/runtime/bin/vmservice/client/deployed/web/index.html
+++ b/runtime/bin/vmservice/client/deployed/web/index.html
@@ -756,6 +756,32 @@
</template>
</polymer-element>
+<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>
+
+</polymer-element>
<polymer-element name="field-view" extends="observatory-element">
<template>
<style>
@@ -1404,6 +1430,15 @@
</div>
</div>
</template>
+
+ <div class="memberItem">&nbsp;</div>
+
+ <div class="memberItem">
+ <div class="memberName">toString()</div>
+ <div class="memberValue">
+ <eval-link callback="{{ eval }}" expr="toString()"></eval-link>
+ </div>
+ </div>
</div>
</div>
« no previous file with comments | « runtime/bin/resources_sources.gypi ('k') | runtime/bin/vmservice/client/deployed/web/index.html_bootstrap.dart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698