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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/observatory_elements/library_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="field_ref.html">
4 <link rel="import" href="instance_ref.html">
3 </head> 5 </head>
4 <polymer-element name="library-view" extends="observatory-element"> 6 <polymer-element name="library-view" extends="observatory-element">
5 <template> 7 <template>
6 <div class="alert alert-success">Library {{ library['name'] }}</div> 8 <div class="alert alert-success">Library {{ library['name'] }}</div>
7 <div class="alert alert-info">Scripts</div> 9 <div class="alert alert-info">Scripts</div>
8 <table class="table table-hover"> 10 <table class="table table-hover">
9 <tbody> 11 <tbody>
10 <tr template repeat="{{ script in library['scripts']}}"> 12 <tr template repeat="{{ script in library['scripts']}}">
11 <td> 13 <td>
12 {{ script['kind'] }} 14 {{ script['kind'] }}
(...skipping 13 matching lines...) Expand all
26 {{ lib['url'] }} 28 {{ lib['url'] }}
27 </a> 29 </a>
28 </td> 30 </td>
29 </tr> 31 </tr>
30 </tbody> 32 </tbody>
31 </table> 33 </table>
32 <div class="alert alert-info">Variables</div> 34 <div class="alert alert-info">Variables</div>
33 <table class="table table-hover"> 35 <table class="table table-hover">
34 <tbody> 36 <tbody>
35 <tr template repeat="{{ variable in library['variables'] }}"> 37 <tr template repeat="{{ variable in library['variables'] }}">
36 <td> 38 <td><field-ref app="{{ app }}" field="{{ variable }}"></field-ref></td>
37 <template if="{{ variable['final'] }}"> 39 <td><instance-ref app="{{ app }}" instance="{{ variable['value'] }}"></i nstance-ref></td>
38 final
39 </template>
40 <template if="{{ variable['const'] }}">
41 const
42 </template>
43 <template if="{{ (variable['declared_type']['name'] == 'dynamic' && !v ariable['final'] && !variable['const']) }}">
44 var
45 </template>
46 <template if="{{ (variable['declared_type']['name'] != 'dynamic') }}">
47 <a href="{{ app.locationManager.currentIsolateClassLink(variable['de clared_type']['id']) }}">
48 {{ variable['declared_type']['user_name'] }}
49 </a>
50 </template>
51 <a href="{{ app.locationManager.currentIsolateObjectLink(variable['id' ])}}">
52 {{ variable['user_name'] }}
53 </a>
54 </td>
55 <td>
56 <template if="{{ (variable['value']['type'] == 'null') }}">
57 {{ "null" }}
58 </template>
59 <template if="{{ (variable['value']['type'] != 'null') }}">
60 <a href="{{ app.locationManager.currentIsolateObjectLink(variable['v alue']['id'])}}">
61 {{ variable['value']['preview'] }}
62 </a>
63 </template>
64 </td>
65 </tr> 40 </tr>
66 </tbody> 41 </tbody>
67 </table> 42 </table>
68 <div class="alert alert-info">Functions</div> 43 <div class="alert alert-info">Functions</div>
69 <table class="table table-hover"> 44 <table class="table table-hover">
70 <tbody> 45 <tbody>
71 <tr template repeat="{{ func in library['functions'] }}"> 46 <tr template repeat="{{ func in library['functions'] }}">
72 <td> 47 <td>
73 <a href="{{ app.locationManager.currentIsolateObjectLink(func['id'])}} "> 48 <a href="{{ app.locationManager.currentIsolateObjectLink(func['id'])}} ">
74 {{ func['user_name'] }} 49 {{ func['user_name'] }}
(...skipping 22 matching lines...) Expand all
97 {{ cls['name'] }} 72 {{ cls['name'] }}
98 </a> 73 </a>
99 </td> 74 </td>
100 </tr> 75 </tr>
101 </tbody> 76 </tbody>
102 </table> 77 </table>
103 78
104 </template> 79 </template>
105 <script type="application/dart" src="library_view.dart"></script> 80 <script type="application/dart" src="library_view.dart"></script>
106 </polymer-element> 81 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698