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

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

Issue 514833003: Add a new Sentinel type for sentinel responses. (They are not Null). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js, fix tests 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
OLDNEW
1 <!DOCTYPE html><html><head> 1 <!DOCTYPE html><html><head>
2 <title>Dart VM Observatory</title> 2 <title>Dart VM Observatory</title>
3 <meta charset="utf-8"> 3 <meta charset="utf-8">
4 4
5 5
6 6
7 7
8 8
9 9
10 10
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 </style> 921 </style>
922 <span> 922 <span>
923 <template if="{{ isError(ref) }}"> 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) }}"> 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="{{ isPsuedoNull(ref) }}"> 931 <template if="{{ isSentinel(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) || 935 <template if="{{ (isString(ref) ||
936 isBool(ref) || 936 isBool(ref) ||
937 isNull(ref) || 937 isNull(ref) ||
938 isInt(ref)) || 938 isInt(ref)) ||
939 isDouble(ref)) }}"> 939 isDouble(ref)) }}">
940 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['valueAsString'] }}</a> 940 <a on-click="{{ goto }}" href="{{ url }}">{{ ref['valueAsString'] }}</a>
941 </template> 941 </template>
(...skipping 13584 matching lines...) Expand 10 before | Expand all | Expand 10 after
14526 <nav-control></nav-control> 14526 <nav-control></nav-control>
14527 </nav-bar> 14527 </nav-bar>
14528 14528
14529 <template if="{{ instance['error'] != null }}"> 14529 <template if="{{ instance['error'] != null }}">
14530 <error-view error_obj="{{ instance['error'] }}"></error-view> 14530 <error-view error_obj="{{ instance['error'] }}"></error-view>
14531 </template> 14531 </template>
14532 14532
14533 <template if="{{ instance['error'] == null }}"> 14533 <template if="{{ instance['error'] == null }}">
14534 <div class="content"> 14534 <div class="content">
14535 <!-- TODO(turnidge): Handle null instances. --> 14535 <!-- TODO(turnidge): Handle null instances. -->
14536 <template if="{{ isType(instance.serviceType) }}"> 14536 <template if="{{ isType(instance) }}">
14537 <h1>type {{ instance['user_name'] }}</h1> 14537 <h1>type {{ instance.name }}</h1>
14538 </template> 14538 </template>
14539 <template if="{{ !isType(instance.serviceType) }}"> 14539 <template if="{{ !isType(instance) }}">
14540 <h1>instance of {{ instance['class']['user_name'] }}</h1> 14540 <h1>instance of {{ instance['class'].name }}</h1>
14541 </template> 14541 </template>
14542 <div class="memberList"> 14542 <div class="memberList">
14543 <div class="memberItem"> 14543 <div class="memberItem">
14544 <div class="memberName">class</div> 14544 <div class="memberName">class</div>
14545 <div class="memberValue"> 14545 <div class="memberValue">
14546 <class-ref ref="{{ instance['class'] }}"> 14546 <class-ref ref="{{ instance['class'] }}">
14547 </class-ref> 14547 </class-ref>
14548 </div> 14548 </div>
14549 </div> 14549 </div>
14550 <template if="{{ instance['valueAsString'] != null }}"> 14550 <template if="{{ instance['valueAsString'] != null }}">
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
14704 <br><br><br><br> 14704 <br><br><br><br>
14705 <br><br><br><br> 14705 <br><br><br><br>
14706 14706
14707 </template> 14707 </template>
14708 </template> 14708 </template>
14709 </polymer-element> 14709 </polymer-element>
14710 14710
14711 14711
14712 14712
14713 14713
14714
14714 <polymer-element name="json-view" extends="observatory-element"> 14715 <polymer-element name="json-view" extends="observatory-element">
14715 <template> 14716 <template>
14716 <nav-bar> 14717 <nav-bar>
14717 <top-nav-menu last="{{ true }}"></top-nav-menu> 14718 <top-nav-menu last="{{ true }}"></top-nav-menu>
14718 </nav-bar> 14719 </nav-bar>
14719 <pre>{{ mapAsString }}</pre> 14720 <pre>{{ mapAsString }}</pre>
14720 </template> 14721 </template>
14721 </polymer-element> 14722 </polymer-element>
14722 14723
14723 14724
(...skipping 4551 matching lines...) Expand 10 before | Expand all | Expand 10 after
19275 </style> 19276 </style>
19276 <a on-click="{{ goto }}" href="{{ url }}">{{ ref.name }}</a> 19277 <a on-click="{{ goto }}" href="{{ url }}">{{ ref.name }}</a>
19277 </template> 19278 </template>
19278 </polymer-element> 19279 </polymer-element>
19279 19280
19280 19281
19281 19282
19282 <observatory-application devtools="true"></observatory-application> 19283 <observatory-application devtools="true"></observatory-application>
19283 19284
19284 <script src="index_devtools.html_bootstrap.dart.js" async=""></script></body></h tml> 19285 <script src="index_devtools.html_bootstrap.dart.js" async=""></script></body></h tml>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698