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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/class_view.html

Issue 110703002: Add an instance view page to the vmservice. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 <head> 1 <head>
2 <link rel="import" href="observatory_element.html"> 2 <link rel="import" href="observatory_element.html">
3 <link rel="import" href="error_view.html"> 3 <link rel="import" href="error_view.html">
4 <link rel="import" href="field_ref.html">
5 <link rel="import" href="instance_ref.html">
4 </head> 6 </head>
5 <polymer-element name="class-view" extends="observatory-element"> 7 <polymer-element name="class-view" extends="observatory-element">
6 <template> 8 <template>
7 <div class="row"> 9 <div class="row">
8 <div class="col-md-8 col-md-offset-2"> 10 <div class="col-md-8 col-md-offset-2">
9 <div class="panel panel-warning"> 11 <div class="panel panel-warning">
10 <div class="panel-heading"> 12 <div class="panel-heading">
11 {{ cls['user_name'] }} ({{ cls['name'] }}) 13 class <strong>{{ cls['user_name'] }}</strong>
12 <template if="{{ cls['super']['type'] != 'Null' }}"> 14 <template if="{{ cls['super']['type'] != 'Null' }}">
13 extends 15 extends
14 <a href="{{ app.locationManager.currentIsolateClassLink(cls['super'] ['id'])}}"> 16 <a href="{{ app.locationManager.currentIsolateClassLink(cls['super'] ['id'])}}">
15 {{ cls['super']['user_name'] }} 17 {{ cls['super']['user_name'] }}
16 </a> 18 </a>
17 </template> 19 </template>
18 <a class="pull-right" href="{{ app.locationManager.currentIsolateObjec tLink(cls['library']['id'])}}"> 20 <a class="pull-right" href="{{ app.locationManager.currentIsolateObjec tLink(cls['library']['id'])}}">
19 {{ cls['library']['name'] }} 21 {{ cls['library']['name'] }}
20 </a> 22 </a>
21 </div> 23 </div>
22 <div class="panel-body"> 24 <div class="panel-body">
23 <table class="table table-hover"> 25 <table class="table table-hover">
24 <tbody> 26 <tbody>
25 <tr> 27 <tr>
26 <td>Abstract</td><td>{{ cls['abstract'] }}</td> 28 <td>Abstract</td><td>{{ cls['abstract'] }}</td>
27 </tr> 29 </tr>
28 <tr> 30 <tr>
29 <td>Const</td><td>{{ cls['const'] }}</td> 31 <td>Const</td><td>{{ cls['const'] }}</td>
30 </tr> 32 </tr>
31 <tr> 33 <tr>
32 <td>Finalized</td><td>{{ cls['const'] }}</td> 34 <td>Finalized</td><td>{{ cls['const'] }}</td>
33 </tr> 35 </tr>
34 <tr> 36 <tr>
35 <td>Implemented</td><td>{{ cls['implemented'] }}</td> 37 <td>Implemented</td><td>{{ cls['implemented'] }}</td>
36 </tr> 38 </tr>
37 <tr> 39 <tr>
38 <td>Patch</td><td>{{ cls['patch'] }}</td> 40 <td>Patch</td><td>{{ cls['patch'] }}</td>
39 </tr> 41 </tr>
42 <tr>
43 <td>VM Name</td><td>{{ cls['name'] }}</td>
44 </tr>
40 </tbody> 45 </tbody>
41 </table> 46 </table>
42 <template if="{{ cls['error'] == null }}"> 47 <template if="{{ cls['error'] == null }}">
43 <blockquote><strong>Fields</strong></blockquote> 48 <blockquote><strong>Fields</strong></blockquote>
44 <table class="table table-hover"> 49 <table class="table table-hover">
45 <thead> 50 <tbody>
46 <tr>
47 <th>User Name</th>
48 <th>VM Name</th>
49 </tr>
50 </thead>
51 <tbody>
52 <tr template repeat="{{ field in cls['fields'] }}"> 51 <tr template repeat="{{ field in cls['fields'] }}">
53 <td><a href="{{ app.locationManager.currentIsolateObjectLink(f ield['id'])}}">{{ field['user_name'] }}</a></td> 52 <td><field-ref app="{{ app }}" field="{{ field }}"></field-ref ></td>
54 <td><a href="{{ app.locationManager.currentIsolateObjectLink(f ield['id'])}}">{{ field['name'] }}</a></td> 53 <td><instance-ref app="{{ app }}" instance="{{ field['value'] }}"></instance-ref></td>
55 </tr> 54 </tr>
56 </tbody> 55 </tbody>
57 </table> 56 </table>
58 <blockquote><strong>Functions</strong></blockquote> 57 <blockquote><strong>Functions</strong></blockquote>
59 <table class="table table-hover"> 58 <table class="table table-hover">
60 <thead> 59 <thead>
61 <tr> 60 <tr>
62 <th>User Name</th> 61 <th>User Name</th>
63 <th>VM Name</th> 62 <th>VM Name</th>
64 </tr> 63 </tr>
65 </thead> 64 </thead>
66 <tbody> 65 <tbody>
67 <tr template repeat="{{ function in cls['functions'] }}"> 66 <tr template repeat="{{ function in cls['functions'] }}">
68 <td><a href="{{ app.locationManager.currentIsolateObjectLink(f unction['id'])}}">{{ function['user_name'] }}</a></td> 67 <td><a href="{{ app.locationManager.currentIsolateObjectLink(f unction['id'])}}">{{ function['user_name'] }}</a></td>
69 <td><a href="{{ app.locationManager.currentIsolateObjectLink(f unction['id'])}}">{{ function['name'] }}</a></td> 68 <td><a href="{{ app.locationManager.currentIsolateObjectLink(f unction['id'])}}">{{ function['name'] }}</a></td>
70 </tr> 69 </tr>
71 </tbody> 70 </tbody>
72 </table> 71 </table>
73 </template> 72 </template>
74 <template if="{{ cls['error'] != null }}"> 73 <template if="{{ cls['error'] != null }}">
75 <error-view error_obj="{{ cls['error'] }}"></error-view> 74 <error-view error_obj="{{ cls['error'] }}"></error-view>
76 </template> 75 </template>
77 </div> 76 </div>
78 </div> 77 </div>
79 </div> 78 </div>
80 </div> 79 </div>
81 </template> 80 </template>
82 <script type="application/dart" src="class_view.dart"></script> 81 <script type="application/dart" src="class_view.dart"></script>
83 </polymer-element> 82 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698