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

Side by Side Diff: runtime/bin/vmservice/observatory/deployed/web/index.html

Issue 501583007: Treat null like the object it is in the Observatory and Service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync and build Created 6 years, 3 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
« no previous file with comments | « no previous file | runtime/bin/vmservice/observatory/deployed/web/index_devtools.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html><html><head> 1 <!DOCTYPE html><html><head>
2 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <title>Dart VM Observatory</title> 3 <title>Dart VM Observatory</title>
4 4
5 5
6 6
7 7
8 8
9 9
10 10
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 background-color: #f5f5f5; 913 background-color: #f5f5f5;
914 border: 1px solid #ccc; 914 border: 1px solid #ccc;
915 padding: 10px; 915 padding: 10px;
916 font-family: consolas, courier, monospace; 916 font-family: consolas, courier, monospace;
917 font-size: 1em; 917 font-size: 1em;
918 line-height: 1.2em; 918 line-height: 1.2em;
919 white-space: pre; 919 white-space: pre;
920 } 920 }
921 </style> 921 </style>
922 <span> 922 <span>
923 <template if="{{ isError(ref.serviceType) }}"> 923 <template if="{{ isError(ref) }}">
924 <pre class="errorBox">{{ ref.message }}</pre> 924 <pre class="errorBox">{{ ref.message }}</pre>
925 </template> 925 </template>
926 926
927 <template if="{{ isUnexpected(ref.serviceType) }}"> 927 <template if="{{ isUnexpected(ref) }}">
928 unexpected reference type &lt;{{ ref.serviceType }}&gt; 928 unexpected reference type &lt;{{ ref.serviceType }}&gt;
929 </template> 929 </template>
930 930
931 <template if="{{ isNull(ref.serviceType) }}"> 931 <template if="{{ isPsuedoNull(ref) }}">
932 <div title="{{ hoverText }}">{{ ref['valueAsString'] }}</div> 932 <div title="{{ hoverText }}">{{ ref['valueAsString'] }}</div>
933 </template> 933 </template>
934 934
935 <template if="{{ (isString(ref.serviceType) || 935 <template if="{{ (isString(ref) ||
936 isBool(ref.serviceType) || 936 isBool(ref) ||
937 isInt(ref.serviceType)) || 937 isNull(ref) ||
938 isDouble(ref.serviceType)) }}"> 938 isInt(ref)) ||
939 isDouble(ref)) }}">
939 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['valueAsString'] }}</a> 940 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['valueAsString'] }}</a>
940 </template> 941 </template>
941 942
942 <template if="{{ (isType(ref.serviceType)) }}"> 943 <template if="{{ (isType(ref)) }}">
943 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['user_name'] }}</a> 944 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['user_name'] }}</a>
944 </template> 945 </template>
945 946
946 <template if="{{ isInstance(ref.serviceType) &amp;&amp; 947 <template if="{{ isInstance(ref) &amp;&amp;
947 ref['closureFunc'] != null}}"> 948 ref['closureFunc'] != null}}">
948 <a on-click="{{ goto }}" href="{{ url }}"> 949 <a on-click="{{ goto }}" href="{{ url }}">
949 <!-- TODO(turnidge): Switch this to fully-qualified function --> 950 <!-- TODO(turnidge): Switch this to fully-qualified function -->
950 {{ ref['closureFunc'].name }} 951 {{ ref['closureFunc'].name }}
951 </a> 952 </a>
952 </template> 953 </template>
953 954
954 <template if="{{ isInstance(ref.serviceType) &amp;&amp; 955 <template if="{{ isInstance(ref) &amp;&amp;
955 ref['closureFunc'] == null}}"> 956 ref['closureFunc'] == null}}">
956 <a on-click="{{ goto }}" href="{{ url }}"><em>{{ ref['class'].name }}</e m></a> 957 <a on-click="{{ goto }}" href="{{ url }}"><em>{{ ref['class'].name }}</e m></a>
957 <curly-block callback="{{ expander() }}"> 958 <curly-block callback="{{ expander() }}">
958 <div class="memberList"> 959 <div class="memberList">
959 <template repeat="{{ field in ref['fields'] }}"> 960 <template repeat="{{ field in ref['fields'] }}">
960 <div class="memberItem"> 961 <div class="memberItem">
961 <div class="memberName"> 962 <div class="memberName">
962 {{ field['decl']['user_name'] }} 963 {{ field['decl']['user_name'] }}
963 </div> 964 </div>
964 <div class="memberValue"> 965 <div class="memberValue">
965 <instance-ref ref="{{ field['value'] }}"></instance-ref> 966 <instance-ref ref="{{ field['value'] }}"></instance-ref>
966 </div> 967 </div>
967 </div> 968 </div>
968 </template> 969 </template>
969 </div> 970 </div>
970 </curly-block> 971 </curly-block>
971 </template> 972 </template>
972 973
973 <template if="{{ isList(ref.serviceType) }}"> 974 <template if="{{ isList(ref) }}">
974 <a on-click="{{ goto }}" href="{{ url }}"><em>{{ ref['class'].name }}</e m> ({{ ref['length']}})</a> 975 <a on-click="{{ goto }}" href="{{ url }}"><em>{{ ref['class'].name }}</e m> ({{ ref['length']}})</a>
975 <curly-block callback="{{ expander() }}"> 976 <curly-block callback="{{ expander() }}">
976 <div class="memberList"> 977 <div class="memberList">
977 <template repeat="{{ element in ref['elements'] }}"> 978 <template repeat="{{ element in ref['elements'] }}">
978 <div class="memberItem"> 979 <div class="memberItem">
979 <div class="memberName">[{{ element['index']}}]</div> 980 <div class="memberName">[{{ element['index']}}]</div>
980 <div class="memberValue"> 981 <div class="memberValue">
981 <instance-ref ref="{{ element['value'] }}"></instance-ref> 982 <instance-ref ref="{{ element['value'] }}"></instance-ref>
982 </div> 983 </div>
983 </div> 984 </div>
984 </template> 985 </template>
985 </div> 986 </div>
986 </curly-block> 987 </curly-block>
987 </template> 988 </template>
988 </span> 989 </span>
989 </template> 990 </template>
990 </polymer-element> 991 </polymer-element>
991 992
993
992 <polymer-element name="action-link"> 994 <polymer-element name="action-link">
993 <template> 995 <template>
994 <style> 996 <style>
995 .idle { 997 .idle {
996 color: #0489c3; 998 color: #0489c3;
997 cursor: pointer; 999 cursor: pointer;
998 text-decoration: none; 1000 text-decoration: none;
999 } 1001 }
1000 .idle:hover { 1002 .idle:hover {
1001 text-decoration: underline; 1003 text-decoration: underline;
(...skipping 13227 matching lines...) Expand 10 before | Expand all | Expand 10 after
14229 background-color: #f5f5f5; 14231 background-color: #f5f5f5;
14230 border: 1px solid #e3e3e3; 14232 border: 1px solid #e3e3e3;
14231 border-radius: 4px; 14233 border-radius: 4px;
14232 box-shadow: inset 0 1px 1px rgba(0,0,0,0.05); 14234 box-shadow: inset 0 1px 1px rgba(0,0,0,0.05);
14233 } 14235 }
14234 14236
14235 .break-wrap { 14237 .break-wrap {
14236 word-wrap: break-word; 14238 word-wrap: break-word;
14237 } 14239 }
14238 </style> 14240 </style>
14239 <style>
14240 .errorBox {
14241 background-color: #f5f5f5;
14242 border: 1px solid #ccc;
14243 padding: 10px;
14244 font-family: consolas, courier, monospace;
14245 font-size: 1em;
14246 line-height: 1.2em;
14247 white-space: pre;
14248 }
14249 </style>
14250 <div> 14241 <div>
14251 from <any-service-ref ref="{{ source }}"></any-service-ref> 14242 from <any-service-ref ref="{{ source }}"></any-service-ref>
14252 <template if="{{ slotIsArrayIndex }}">via [{{ slot }}]</template> 14243 <template if="{{ slotIsArrayIndex }}">via [{{ slot }}]</template>
14253 <template if="{{ slotIsField }}">via <field-ref ref="{{ slot }}"></field-r ef></template> 14244 <template if="{{ slotIsField }}">via <field-ref ref="{{ slot }}"></field-r ef></template>
14254 14245
14255 <curly-block callback="{{ expander() }}"> 14246 <curly-block callback="{{ expander() }}">
14256 <div class="memberList"> 14247 <div class="memberList">
14257 <div class="memberItem"> 14248 <div class="memberItem">
14258 <div class="memberName"> 14249 <div class="memberName">
14259 <template repeat="{{ reference in inboundReferences] }}"> 14250 <template repeat="{{ reference in inboundReferences] }}">
(...skipping 5024 matching lines...) Expand 10 before | Expand all | Expand 10 after
19284 </style> 19275 </style>
19285 <a on-click="{{ goto }}" href="{{ url }}">{{ ref.name }}</a> 19276 <a on-click="{{ goto }}" href="{{ url }}">{{ ref.name }}</a>
19286 </template> 19277 </template>
19287 </polymer-element> 19278 </polymer-element>
19288 19279
19289 19280
19290 19281
19291 <observatory-application></observatory-application> 19282 <observatory-application></observatory-application>
19292 19283
19293 <script src="index.html_bootstrap.dart.js" async=""></script></body></html> 19284 <script src="index.html_bootstrap.dart.js" async=""></script></body></html>
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/vmservice/observatory/deployed/web/index_devtools.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698