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

Side by Side Diff: runtime/bin/vmservice/client/deployed/web/index_devtools.html

Issue 167713002: Improved how closures are displayed by <instance-ref>. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html><html><head> 1 <!DOCTYPE html><html><head>
2 2
3 3
4 <title>Dart VM Observatory</title> 4 <title>Dart VM Observatory</title>
5 <meta charset="utf-8"> 5 <meta charset="utf-8">
6 <link type="text/css" rel="stylesheet" href="bootstrap_css/css/bootstrap.min.c ss"> 6 <link type="text/css" rel="stylesheet" href="bootstrap_css/css/bootstrap.min.c ss">
7 <script type="text/javascript" src="https://www.google.com/jsapi"></script> 7 <script type="text/javascript" src="https://www.google.com/jsapi"></script>
8 8
9 9
10 <script src="index_devtools.html_bootstrap.dart.js"></script> 10 <script src="index_devtools.html_bootstrap.dart.js"></script>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 <template if="{{ isNullRef(ref['type']) }}"> 91 <template if="{{ isNullRef(ref['type']) }}">
92 {{ name }} 92 {{ name }}
93 </template> 93 </template>
94 94
95 <template if="{{ (isStringRef(ref['type']) || 95 <template if="{{ (isStringRef(ref['type']) ||
96 isBoolRef(ref['type']) || 96 isBoolRef(ref['type']) ||
97 isIntRef(ref['type'])) }}"> 97 isIntRef(ref['type'])) }}">
98 <a href="{{ url }}">{{ name }}</a> 98 <a href="{{ url }}">{{ name }}</a>
99 </template> 99 </template>
100 100
101 <template if="{{ isClosureRef(ref['type']) }}">
102 <a href="{{ url }}">
103 {{ ref['closureFunc']['user_name'] }}
104 </a>
105 </template>
106
101 <template if="{{ isInstanceRef(ref['type']) }}"> 107 <template if="{{ isInstanceRef(ref['type']) }}">
102 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> { 108 <a href="{{ url }}"><em>{{ ref['class']['user_name'] }}</em></a> {
103 <a on-click="{{ toggleExpand }}">...</a> 109 <a on-click="{{ toggleExpand }}">...</a>
104 <template if="{{ expanded }}"> 110 <template if="{{ expanded }}">
105 <table class="memberList"> 111 <table class="memberList">
106 <tbody><tr template="" repeat="{{ field in ref['fields'] }}"> 112 <tbody><tr template="" repeat="{{ field in ref['fields'] }}">
107 113
108 <td class="member">{{ field['decl']['user_name'] }}</td> 114 <td class="member">{{ field['decl']['user_name'] }}</td>
109 <td class="member"> 115 <td class="member">
110 <instance-ref app="{{ app }}" ref="{{ field['value'] }}"></insta nce-ref> 116 <instance-ref app="{{ app }}" ref="{{ field['value'] }}"></insta nce-ref>
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 </template> 769 </template>
764 <template if="{{ messageType == 'Library' }}"> 770 <template if="{{ messageType == 'Library' }}">
765 <library-view app="{{ app }}" library="{{ message }}"></library-view> 771 <library-view app="{{ app }}" library="{{ message }}"></library-view>
766 </template> 772 </template>
767 <template if="{{ messageType == 'Class' }}"> 773 <template if="{{ messageType == 'Class' }}">
768 <class-view app="{{ app }}" cls="{{ message }}"></class-view> 774 <class-view app="{{ app }}" cls="{{ message }}"></class-view>
769 </template> 775 </template>
770 <template if="{{ messageType == 'Field' }}"> 776 <template if="{{ messageType == 'Field' }}">
771 <field-view app="{{ app }}" field="{{ message }}"></field-view> 777 <field-view app="{{ app }}" field="{{ message }}"></field-view>
772 </template> 778 </template>
779 <template if="{{ messageType == 'Closure' }}">
780 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
781 </template>
773 <template if="{{ messageType == 'Instance' }}"> 782 <template if="{{ messageType == 'Instance' }}">
774 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view> 783 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
775 </template> 784 </template>
776 <template if="{{ messageType == 'Array' }}"> 785 <template if="{{ messageType == 'Array' }}">
777 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view> 786 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
778 </template> 787 </template>
779 <template if="{{ messageType == 'GrowableObjectArray' }}"> 788 <template if="{{ messageType == 'GrowableObjectArray' }}">
780 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view> 789 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
781 </template> 790 </template>
782 <template if="{{ messageType == 'String' }}"> 791 <template if="{{ messageType == 'String' }}">
(...skipping 16 matching lines...) Expand all
799 </template> 808 </template>
800 <template if="{{ messageType == 'AllocationProfile' }}"> 809 <template if="{{ messageType == 'AllocationProfile' }}">
801 <heap-profile app="{{ app }}" profile="{{ message }}"></heap-profile> 810 <heap-profile app="{{ app }}" profile="{{ message }}"></heap-profile>
802 </template> 811 </template>
803 <template if="{{ messageType == 'CPU' }}"> 812 <template if="{{ messageType == 'CPU' }}">
804 <json-view json="{{ message }}"></json-view> 813 <json-view json="{{ message }}"></json-view>
805 </template> 814 </template>
806 <!-- Add new views and message types in the future here. --> 815 <!-- Add new views and message types in the future here. -->
807 </template> 816 </template>
808 817
809 </polymer-element><polymer-element name="navigation-bar-isolate" extends="observ atory-element"> 818 </polymer-element>
819 <polymer-element name="navigation-bar-isolate" extends="observatory-element">
810 <template> 820 <template>
811 <ul class="nav navbar-nav"> 821 <ul class="nav navbar-nav">
812 <li><a href="{{ currentIsolateLink('') }}"> {{currentIsolateName()}}</a> </li> 822 <li><a href="{{ currentIsolateLink('') }}"> {{currentIsolateName()}}</a> </li>
813 <template repeat="{{link in links}}"> 823 <template repeat="{{link in links}}">
814 <li><a href="{{ currentIsolateLink(link) }}">{{ link }}</a></li> 824 <li><a href="{{ currentIsolateLink(link) }}">{{ link }}</a></li>
815 </template> 825 </template>
816 </ul> 826 </ul>
817 </template> 827 </template>
818 828
819 </polymer-element><polymer-element name="navigation-bar" extends="observatory-el ement"> 829 </polymer-element><polymer-element name="navigation-bar" extends="observatory-el ement">
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 </template> 888 </template>
879 <template if="{{ app.locationManager.profile == false }}"> 889 <template if="{{ app.locationManager.profile == false }}">
880 <response-viewer app="{{ app }}"></response-viewer> 890 <response-viewer app="{{ app }}"></response-viewer>
881 </template> 891 </template>
882 </template> 892 </template>
883 893
884 </polymer-element> 894 </polymer-element>
885 <observatory-application devtools="true"></observatory-application> 895 <observatory-application devtools="true"></observatory-application>
886 896
887 </body></html> 897 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698