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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/class_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/class_view.html
diff --git a/runtime/bin/vmservice/client/lib/src/observatory_elements/class_view.html b/runtime/bin/vmservice/client/lib/src/observatory_elements/class_view.html
new file mode 100644
index 0000000000000000000000000000000000000000..be39f31c4a450579e08bf4d69c1f17c13b031833
--- /dev/null
+++ b/runtime/bin/vmservice/client/lib/src/observatory_elements/class_view.html
@@ -0,0 +1,77 @@
+<head>
+ <link rel="import" href="observatory_element.html">
+</head>
+<polymer-element name="class-view" extends="observatory-element">
+ <template>
+ <div class="row">
+ <div class="col-md-8 col-md-offset-2">
+ <div class="panel panel-warning">
+ <div class="panel-heading">
+ {{ cls['user_name'] }} ({{ cls['name'] }})
+ <template if="{{ cls['super']['type'] != 'Null' }}">
+ extends
+ <a href="{{ app.locationManager.currentIsolateClassLink(cls['super']['id'])}}">
+ {{ cls['super']['user_name'] }}
+ </a>
+ </template>
+ <a class="pull-right" href="{{ app.locationManager.currentIsolateObjectLink(cls['library']['id'])}}">
+ {{ cls['library']['name'] }}
+ </a>
+ </div>
+ <div class="panel-body">
+ <table class="table table-hover">
+ <tbody>
+ <tr>
+ <td>Abstract</td><td>{{ cls['abstract'] }}</td>
+ </tr>
+ <tr>
+ <td>Const</td><td>{{ cls['const'] }}</td>
+ </tr>
+ <tr>
+ <td>Finalized</td><td>{{ cls['const'] }}</td>
+ </tr>
+ <tr>
+ <td>Implemented</td><td>{{ cls['implemented'] }}</td>
+ </tr>
+ <tr>
+ <td>Patch</td><td>{{ cls['patch'] }}</td>
+ </tr>
+ </tbody>
+ </table>
+ <blockquote><strong>Fields</strong></blockquote>
+ <table class="table table-hover">
+ <thead>
+ <tr>
+ <th>User Name</th>
+ <th>VM Name</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr template repeat="{{ field in cls['fields'] }}">
+ <td><a href="{{ app.locationManager.currentIsolateObjectLink(field['id'])}}">{{ field['user_name'] }}</a></td>
+ <td><a href="{{ app.locationManager.currentIsolateObjectLink(field['id'])}}">{{ field['name'] }}</a></td>
+ </tr>
+ </tbody>
+ </table>
+ <blockquote><strong>Functions</strong></blockquote>
+ <table class="table table-hover">
+ <thead>
+ <tr>
+ <th>User Name</th>
+ <th>VM Name</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr template repeat="{{ function in cls['functions'] }}">
+ <td><a href="{{ app.locationManager.currentIsolateObjectLink(function['id'])}}">{{ function['user_name'] }}</a></td>
+ <td><a href="{{ app.locationManager.currentIsolateObjectLink(function['id'])}}">{{ function['name'] }}</a></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ </div>
+ </div>
+ </template>
+ <script type="application/dart" src="class_view.dart"></script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698