OLD | NEW |
1 <head> | 1 <head> |
2 <link rel="import" href="class_view.html"> | 2 <link rel="import" href="class_view.html"> |
3 <link rel="import" href="code_view.html"> | 3 <link rel="import" href="code_view.html"> |
4 <link rel="import" href="error_view.html"> | 4 <link rel="import" href="error_view.html"> |
5 <link rel="import" href="field_view.html"> | 5 <link rel="import" href="field_view.html"> |
6 <link rel="import" href="function_view.html"> | 6 <link rel="import" href="function_view.html"> |
7 <link rel="import" href="isolate_list.html"> | 7 <link rel="import" href="isolate_list.html"> |
8 <link rel="import" href="library_view.html"> | 8 <link rel="import" href="library_view.html"> |
9 <link rel="import" href="observatory_element.html"> | 9 <link rel="import" href="observatory_element.html"> |
| 10 <link rel="import" href="script_view.html"> |
| 11 <link rel="import" href="source_view.html"> |
10 <link rel="import" href="stack_trace.html"> | 12 <link rel="import" href="stack_trace.html"> |
11 </head> | 13 </head> |
12 <polymer-element name="message-viewer" extends="observatory-element"> | 14 <polymer-element name="message-viewer" extends="observatory-element"> |
13 <!-- | 15 <!-- |
14 This is a big switch statement which instantiates the custom element | 16 This is a big switch statement which instantiates the custom element |
15 designated to display the message type. | 17 designated to display the message type. |
16 --> | 18 --> |
17 <template> | 19 <template> |
18 <!-- If the message type is an IsolateList --> | 20 <!-- If the message type is an IsolateList --> |
19 <template if="{{ messageType == 'IsolateList' }}"> | 21 <template if="{{ messageType == 'IsolateList' }}"> |
(...skipping 15 matching lines...) Expand all Loading... |
35 </template> | 37 </template> |
36 <template if="{{ messageType == 'Field' }}"> | 38 <template if="{{ messageType == 'Field' }}"> |
37 <field-view app="{{ app }}" field="{{ message }}"></field-view> | 39 <field-view app="{{ app }}" field="{{ message }}"></field-view> |
38 </template> | 40 </template> |
39 <template if="{{ messageType == 'Function' }}"> | 41 <template if="{{ messageType == 'Function' }}"> |
40 <function-view app="{{ app }}" function="{{ message }}"></function-view> | 42 <function-view app="{{ app }}" function="{{ message }}"></function-view> |
41 </template> | 43 </template> |
42 <template if="{{ messageType == 'Code' }}"> | 44 <template if="{{ messageType == 'Code' }}"> |
43 <code-view app="{{ app }}" code="{{ message }}"></code-view> | 45 <code-view app="{{ app }}" code="{{ message }}"></code-view> |
44 </template> | 46 </template> |
| 47 <template if="{{ messageType == 'Script' }}"> |
| 48 <script-view app="{{ app }}" script="{{ message }}"></script-view> |
| 49 </template> |
45 <!-- Add new views and message types in the future here. --> | 50 <!-- Add new views and message types in the future here. --> |
46 </template> | 51 </template> |
47 <script type="application/dart" src="message_viewer.dart"></script> | 52 <script type="application/dart" src="message_viewer.dart"></script> |
48 </polymer-element> | 53 </polymer-element> |
OLD | NEW |