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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/source_view.html

Issue 59283007: List scripts in library and display script source (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/lib/src/observatory_elements/source_view.html
diff --git a/runtime/bin/vmservice/client/lib/src/observatory_elements/source_view.html b/runtime/bin/vmservice/client/lib/src/observatory_elements/source_view.html
new file mode 100644
index 0000000000000000000000000000000000000000..38f316070f0f247c23989a269d1099f29f581b2b
--- /dev/null
+++ b/runtime/bin/vmservice/client/lib/src/observatory_elements/source_view.html
@@ -0,0 +1,22 @@
+<head>
+ <link rel="import" href="observatory_element.html">
+</head>
+<polymer-element name="source-view" extends="observatory-element">
+ <template>
+ <div class="row">
+ <div class="col-md-8 col-md-offset-2">
+ <div class="panel-heading">{{ source.url }}</div>
+ <div class="panel-body">
+ <div class="row">
+ <div><strong>Source</strong></div>
+ </div>
+ <pre>
+ <template repeat="{{ line in source.lines }}">{{line.paddedLine}} {{line.src}}
+ </template>
+ </pre>
+ </div>
+ </div>
+ </div>
+ </template>
+ <script type="application/dart" src="source_view.dart"></script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698