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

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

Issue 216883008: Use tokenPos instead of line/col in the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js / handle multiple reloads 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/script_inset.html
diff --git a/runtime/bin/vmservice/client/deployed/web/packages/observatory/src/elements/script_inset.html b/runtime/bin/vmservice/client/deployed/web/packages/observatory/src/elements/script_inset.html
new file mode 100644
index 0000000000000000000000000000000000000000..7d9032d169778f298d9112df2cad205a92ad551e
--- /dev/null
+++ b/runtime/bin/vmservice/client/deployed/web/packages/observatory/src/elements/script_inset.html
@@ -0,0 +1,34 @@
+<head>
+ <link rel="import" href="observatory_element.html">
+</head>
+<polymer-element name="script-inset" extends="observatory-element">
+ <template>
+ <style>
+ .sourceInset {
+ padding-left: 15%;
+ padding-right: 15%;
+ }
+ .grayBox {
+ width: 100%;
+ background-color: #f5f5f5;
+ border: 1px solid #ccc;
+ padding: 10px;
+ }
+ </style>
+ <div class="sourceInset">
+ <content></content>
+ <div class="grayBox">
+ <table>
+ <tbody>
+ <tr template repeat="{{ line in lines }}">
+ <td style="font-family: consolas, courier, monospace;font-size: 1em;line-height: 1.2em;white-space: nowrap;">{{line.line}}</td>
+ <td>&nbsp;</td>
+ <td width="99%" style="font-family: consolas, courier, monospace;font-size: 1em;line-height: 1.2em;white-space: pre;">{{line.text}}</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </template>
+ <script type="application/dart" src="script_inset.dart"></script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698