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

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

Issue 378113002: Improve script display in the observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> 1 <link rel="import" href="../../../../packages/polymer/polymer.html">
2 <link rel="import" href="observatory_element.html"> 2 <link rel="import" href="observatory_element.html">
3 3
4 <polymer-element name="script-inset" extends="observatory-element"> 4 <polymer-element name="script-inset" extends="observatory-element">
5 <template> 5 <template>
6 <style> 6 <style>
7 .sourceInset { 7 .sourceInset {
8 padding-left: 15%; 8 padding-left: 15%;
9 padding-right: 15%; 9 padding-right: 15%;
10 } 10 }
11 .grayBox { 11 .sourceBox {
12 width: 100%; 12 width: 100%;
13 background-color: #f5f5f5; 13 background-color: #f5f5f5;
14 border: 1px solid #ccc; 14 border: 1px solid #ccc;
15 padding: 10px; 15 padding: 10px;
16 } 16 overflow-y: auto;
17 }
18 .sourceTable {
19 display: table;
20 }
21 .sourceRow {
22 display: table-row;
23 }
24 .sourceItem, .sourceItemCurrent {
25 display: table-cell;
26 vertical-align: top;
27 font: 400 14px consolas, courier, monospace;
28 line-height: 125%;
29 white-space: pre;
30 }
31 .sourceItemCurrent {
32 background-color: #6cf;
33 }
34 .hitsNone, .hitsNotExecuted, .hitsExecuted {
35 min-width: 32px;
36 text-align: right;
37 }
38 .hitsNotExecuted {
39 background-color: #e66;
40 }
41 .hitsExecuted {
42 background-color: #6d6;
43 }
17 </style> 44 </style>
18 <div class="sourceInset"> 45 <div class="sourceInset">
19 <content></content> 46 <content></content>
20 <div class="grayBox"> 47 <div class="sourceBox" style="height:{{height}}">
21 <table> 48 <div class="sourceTable">
22 <tbody> 49 <template repeat="{{ line in lines }}">
23 <tr template repeat="{{ lineNumber in lineNumbers }}"> 50 <div class="sourceRow" id="{{ makeLineId(line.line) }}">
24 <td style="{{ styleForHits(script.lines[lineNumber].hits) }}"><spa n> </span></td> 51 <template if="{{ line.hits == null }}">
25 <td style="font-family: consolas, courier, monospace;font-size: 1e m;line-height: 1.2em;white-space: nowrap;">{{script.lines[lineNumber].line}}</td > 52 <div class="hitsNone">{{ line.line }}</div>
26 <td>&nbsp;</td> 53 </template>
27 <td width="99%" style="font-family: consolas, courier, monospace;f ont-size: 1em;line-height: 1.2em;white-space: pre;">{{script.lines[lineNumber].t ext}}</td> 54 <template if="{{ line.hits == 0 }}">
28 </tr> 55 <div class="hitsNotExecuted">{{ line.line }}</div>
29 </tbody> 56 </template>
30 </table> 57 <template if="{{ line.hits > 0 }}">
58 <div class="hitsExecuted">{{ line.line }}</div>
59 </template>
60 <div class="sourceItem">&nbsp;</div>
61 <template if="{{ line.line == currentLine }}">
62 <div id="currentLine" class="sourceItemCurrent">{{line.text}}</d iv>
63 </template>
64 <template if="{{ line.line != currentLine }}">
65 <div class="sourceItem">{{line.text}}</div>
66 </template>
67 </div>
68 </template>
69 </div>
31 </div> 70 </div>
32 </div> 71 </div>
33 </template> 72 </template>
34 </polymer-element> 73 </polymer-element>
35 74
36 <script type="application/dart" src="script_inset.dart"></script> 75 <script type="application/dart" src="script_inset.dart"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698