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

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

Issue 50243002: Extend Observatory to display libraries, classes, fields, functions and code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/lib/src/observatory_elements/library_view.html
diff --git a/runtime/bin/vmservice/client/lib/src/observatory_elements/library_view.html b/runtime/bin/vmservice/client/lib/src/observatory_elements/library_view.html
new file mode 100644
index 0000000000000000000000000000000000000000..aaa0667bc9bf3d2d283784a5eee5bf151f14820f
--- /dev/null
+++ b/runtime/bin/vmservice/client/lib/src/observatory_elements/library_view.html
@@ -0,0 +1,44 @@
+<head>
+ <link rel="import" href="observatory_element.html">
+</head>
+<polymer-element name="library-view" extends="observatory-element">
+ <template>
+ <div class="alert alert-success">Library {{ library['name'] }}</div>
+ <div class="alert alert-info">Imported Libraries</div>
+ <table class="table table-hover">
+ <tbody>
+ <tr template repeat="{{ lib in library['libraries'] }}">
+ <td>
+ <a href="{{ app.locationManager.currentIsolateObjectLink(lib['id'])}}">
+ {{ lib['name'] }}
+ </a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <div class="alert alert-info">Classes</div>
+ <table class="table table-hover">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Internal Name</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr template repeat="{{ cls in library['classes'] }}">
+ <td>
+ <a href="{{ app.locationManager.currentIsolateClassLink(cls['id']) }}">
+ {{ cls['user_name'] }}
+ </a>
+ </td>
+ <td>
+ <a href="{{ app.locationManager.currentIsolateClassLink(cls['id']) }}">
+ {{ cls['name'] }}
+ </a>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </template>
+ <script type="application/dart" src="library_view.dart"></script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698