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

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

Issue 82793004: Add field and function view for libraries. Rough cut. (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 </head> 3 </head>
4 <polymer-element name="library-view" extends="observatory-element"> 4 <polymer-element name="library-view" extends="observatory-element">
5 <template> 5 <template>
6 <div class="alert alert-success">Library {{ library['name'] }}</div> 6 <div class="alert alert-success">Library {{ library['name'] }}</div>
7 <div class="alert alert-info">Imported Libraries</div> 7 <div class="alert alert-info">Imported Libraries</div>
8 <table class="table table-hover"> 8 <table class="table table-hover">
9 <tbody> 9 <tbody>
10 <tr template repeat="{{ lib in library['libraries'] }}"> 10 <tr template repeat="{{ lib in library['libraries'] }}">
11 <td> 11 <td>
12 <a href="{{ app.locationManager.currentIsolateObjectLink(lib['id'])}}" > 12 <a href="{{ app.locationManager.currentIsolateObjectLink(lib['id'])}}" >
13 {{ lib['name'] }} 13 {{ lib['url'] }}
14 </a>
15 </td>
16 </tr>
17 </tbody>
18 </table>
19 <div class="alert alert-info">Variables</div>
20 <table class="table table-hover">
21 <tbody>
22 <tr template repeat="{{ variable in library['variables'] }}">
23 <td>
24 <template if="{{ variable['final'] }}">
25 final
26 </template>
27 <template if="{{ variable['const'] }}">
28 const
29 </template>
30 <template if="{{ (variable['declared_type']['name'] == 'dynamic' && !v ariable['final'] && !variable['const']) }}">
31 var
32 </template>
33 <template if="{{ (variable['declared_type']['name'] != 'dynamic') }}">
34 <a href="{{ app.locationManager.currentIsolateClassLink(variable['de clared_type']['id']) }}">
35 {{ variable['declared_type']['user_name'] }}
36 </a>
37 </template>
38 <a href="{{ app.locationManager.currentIsolateObjectLink(variable['id' ])}}">
39 {{ variable['user_name'] }}
40 </a>
41 </td>
42 <td>
43 <template if="{{ (variable['value']['type'] == 'null') }}">
44 {{ "null" }}
45 </template>
46 <template if="{{ (variable['value']['type'] != 'null') }}">
47 <a href="{{ app.locationManager.currentIsolateObjectLink(variable['v alue']['id'])}}">
48 {{ variable['value']['preview'] }}
49 </a>
50 </template>
51 </td>
52 </tr>
53 </tbody>
54 </table>
55 <div class="alert alert-info">Functions</div>
56 <table class="table table-hover">
57 <tbody>
58 <tr template repeat="{{ func in library['functions'] }}">
59 <td>
60 <a href="{{ app.locationManager.currentIsolateObjectLink(func['id'])}} ">
61 {{ func['user_name'] }}
14 </a> 62 </a>
15 </td> 63 </td>
16 </tr> 64 </tr>
17 </tbody> 65 </tbody>
18 </table> 66 </table>
19 <div class="alert alert-info">Classes</div> 67 <div class="alert alert-info">Classes</div>
20 <table class="table table-hover"> 68 <table class="table table-hover">
21 <thead> 69 <thead>
22 <tr> 70 <tr>
23 <th>Name</th> 71 <th>Name</th>
(...skipping 11 matching lines...) Expand all
35 <a href="{{ app.locationManager.currentIsolateClassLink(cls['id']) }}" > 83 <a href="{{ app.locationManager.currentIsolateClassLink(cls['id']) }}" >
36 {{ cls['name'] }} 84 {{ cls['name'] }}
37 </a> 85 </a>
38 </td> 86 </td>
39 </tr> 87 </tr>
40 </tbody> 88 </tbody>
41 </table> 89 </table>
42 </template> 90 </template>
43 <script type="application/dart" src="library_view.dart"></script> 91 <script type="application/dart" src="library_view.dart"></script>
44 </polymer-element> 92 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698