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

Unified Diff: runtime/bin/vmservice/client/deployed/web/index_devtools.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_devtools.html
diff --git a/runtime/bin/vmservice/client/deployed/web/index_devtools.html b/runtime/bin/vmservice/client/deployed/web/index_devtools.html
index 4fcd5e1e29547fd05e5733688fa46374bf1880b9..6ab95d7cd53e503e201c801a0d7048a423530c8b 100644
--- a/runtime/bin/vmservice/client/deployed/web/index_devtools.html
+++ b/runtime/bin/vmservice/client/deployed/web/index_devtools.html
@@ -755,6 +755,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>
@@ -1403,6 +1429,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>

Powered by Google App Engine
This is Rietveld 408576698