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

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

Issue 50243002: Extend Observatory to display libraries, classes, fields, functions and code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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="class_view.html">
3 <link rel="import" href="code_view.html">
4 <link rel="import" href="error_view.html">
5 <link rel="import" href="field_view.html">
6 <link rel="import" href="function_view.html">
7 <link rel="import" href="isolate_list.html">
8 <link rel="import" href="library_view.html">
2 <link rel="import" href="observatory_element.html"> 9 <link rel="import" href="observatory_element.html">
3 <link rel="import" href="error_view.html">
4 <link rel="import" href="isolate_list.html">
5 <link rel="import" href="stack_trace.html"> 10 <link rel="import" href="stack_trace.html">
6 </head> 11 </head>
7 <polymer-element name="message-viewer" extends="observatory-element"> 12 <polymer-element name="message-viewer" extends="observatory-element">
8 <!-- 13 <!--
9 This is a big switch statement which instantiates the custom element 14 This is a big switch statement which instantiates the custom element
10 designated to display the message type. 15 designated to display the message type.
11 --> 16 -->
12 <template> 17 <template>
13 <!-- If the message type is an IsolateList --> 18 <!-- If the message type is an IsolateList -->
14 <template if="{{ messageType == 'IsolateList' }}"> 19 <template if="{{ messageType == 'IsolateList' }}">
15 <isolate-list app="{{ app }}"></isolate-list> 20 <isolate-list app="{{ app }}"></isolate-list>
16 </template> 21 </template>
17 <!-- If the message type is a StackTrace --> 22 <!-- If the message type is a StackTrace -->
18 <template if="{{ messageType == 'StackTrace' }}"> 23 <template if="{{ messageType == 'StackTrace' }}">
19 <stack-trace app="{{ app }}" trace="{{ message }}"></stack-trace> 24 <stack-trace app="{{ app }}" trace="{{ message }}"></stack-trace>
20 </template> 25 </template>
21 <!-- If the message type is a RequestError --> 26 <!-- If the message type is a RequestError -->
22 <template if="{{ messageType == 'RequestError' }}"> 27 <template if="{{ messageType == 'RequestError' }}">
23 <error-view app="{{ app }}" error="{{ message['error'] }}"></error-view> 28 <error-view app="{{ app }}" error="{{ message['error'] }}"></error-view>
24 </template> 29 </template>
30 <template if="{{ messageType == 'Library' }}">
31 <library-view app="{{ app }}" library="{{ message }}"></library-view>
32 </template>
33 <template if="{{ messageType == 'Class' }}">
34 <class-view app="{{ app }}" cls="{{ message }}"></class-view>
35 </template>
36 <template if="{{ messageType == 'Field' }}">
37 <field-view app="{{ app }}" field="{{ message }}"></field-view>
38 </template>
39 <template if="{{ messageType == 'Function' }}">
40 <function-view app="{{ app }}" function="{{ message }}"></function-view>
41 </template>
42 <template if="{{ messageType == 'Code' }}">
43 <code-view app="{{ app }}" code="{{ message }}"></code-view>
44 </template>
25 <!-- Add new views and message types in the future here. --> 45 <!-- Add new views and message types in the future here. -->
26 </template> 46 </template>
27 <script type="application/dart" src="message_viewer.dart"></script> 47 <script type="application/dart" src="message_viewer.dart"></script>
28 </polymer-element> 48 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698