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

Side by Side Diff: runtime/observatory/lib/src/elements/eval_link.html

Issue 1120133002: Rework error handling in the service protocol and in Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix tests Created 5 years, 7 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 <link rel="import" href="../../../../packages/polymer/polymer.html"> 1 <link rel="import" href="../../../../packages/polymer/polymer.html">
2 <link rel="import" href="instance_ref.html"> 2 <link rel="import" href="instance_ref.html">
3 <link rel="import" href="error_ref.html"> 3 <link rel="import" href="error_ref.html">
4 <link rel="import" href="observatory_element.html">
4 5
5 <polymer-element name="eval-link"> 6 <polymer-element name="eval-link" extends="observatory-element">
6 <template> 7 <template>
7 <style> 8 <style>
8 .idle { 9 .idle {
9 color: #0489c3; 10 color: #0489c3;
10 cursor: pointer; 11 cursor: pointer;
11 } 12 }
12 .busy { 13 .busy {
13 color: #aaa; 14 color: #aaa;
14 cursor: wait; 15 cursor: wait;
15 } 16 }
16 </style> 17 </style>
17 18
18 <template if="{{ busy }}"> 19 <template if="{{ busy }}">
19 <span class="busy">{{ label }}</span> 20 <span class="busy">{{ label }}</span>
20 </template> 21 </template>
21 <template if="{{ !busy }}"> 22 <template if="{{ !busy }}">
22 <span class="idle"><a on-click="{{ evalNow }}">{{ label }}</a></span> 23 <span class="idle"><a on-click="{{ evalNow }}">{{ label }}</a></span>
23 </template> 24 </template>
24 <template if="{{ result != null }}"> 25 <template if="{{ error != null }}">
25 = <any-service-ref ref="{{ result }}"></any-service-ref> 26 = <span style="color:red">{{ error }}</span>
27 </template>
28 <template if="{{ error == null }}">
29 <template if="{{ result != null }}">
30 = <any-service-ref ref="{{ result }}"></any-service-ref>
31 </template>
26 </template> 32 </template>
27 </template> 33 </template>
28 </polymer-element> 34 </polymer-element>
29 35
30 <script type="application/dart" src="eval_link.dart"></script> 36 <script type="application/dart" src="eval_link.dart"></script>
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/eval_link.dart ('k') | runtime/observatory/lib/src/elements/field_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698