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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/eval_box.html

Issue 194623006: Improve the instance-view page in observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <head>
2 <link rel="import" href="observatory_element.html">
3 </head>
4 <polymer-element name="eval-box" extends="observatory-element">
5 <template>
6 <style>
7 .textbox {
8 width: 80ex;
9 font: 400 16px 'Montserrat', sans-serif;
10 }
11 .bigtextbox {
12 font: 400 16px 'Montserrat', sans-serif;
13 }
14 .button {
15 font: 400 16px 'Montserrat', sans-serif;
16 }
17 .radios {
18 display: inline;
19 }
20 .radios label{
21 padding-left: 15px;
22 }
23 .historyExpr, .historyValue {
24 vertical-align: text-top;
25 font: 400 14px 'Montserrat', sans-serif;
26 }
27 .historyExpr a {
28 display: block;
29 color: black;
30 text-decoration: none;
31 padding: 6px 6px;
32 cursor: pointer;
33 }
34 .historyExpr a:hover {
35 background-color: #e1f5fe
36 }
37 .historyValue {
38 display: block;
39 padding: 6px 6px;
40 }
41 </style>
42 <form>
43 <template if="{{ lineMode == '1-line' }}">
44 <input class="textbox" type="text" value="{{ text }}">
45 </template>
46 <template if="{{ lineMode == 'N-line' }}">
47 <textarea class="bigtextbox" rows="5" cols="80"
48 value="{{ text }}"></textarea>
49 </template>
50
51 <input class="button" type="submit" value="Evaluate" on-click="{{ eval }}" >
52 <div class="radios" on-change="{{ updateLineMode }}">
53 <label for="1-line">1-line
54 <input type="radio" name="lineMode" value="1-line" checked>
55 </label>
56 <label for="N-line">N-line
57 <input type="radio" name="lineMode" value="N-line">
58 </label>
59 </div>
60 </form>
61
62 <br>
63 <template if="{{ results.isNotEmpty }}">
64 <table>
65 <tr template repeat="{{ result in results }}">
66 <td class="historyExpr">
67 <a class="expr" on-click="{{ selectExpr }}"
68 expr="{{ result['expr'] }}">
69 {{ result['expr'] }}
70 </a>
71 </td>
72 <td class="historyValue">
73 <template if="{{ result['value'] == null }}">
74 <div style="color:#aaa;cursor:wait;">&lt;pending&gt;</div>
75 </template>
76 <template if="{{ result['value'] != null }}">
77 <instance-ref isolate="{{ isolate }}"
78 ref="{{ result['value'] }}">
79 </instance-ref>
80 </template>
81 </td>
82 </tr>
83 </table>
84 </template>
85 </template>
86 </polymer-element>
87
88 <script type="application/dart" src="eval_box.dart"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698