| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <link rel="import" href="observatory_element.html"> | 2 <link rel="import" href="observatory_element.html"> |
| 3 <link rel="import" href="error_view.html"> | 3 <link rel="import" href="error_view.html"> |
| 4 <link rel="import" href="isolate_list.html"> | 4 <link rel="import" href="isolate_list.html"> |
| 5 <link rel="import" href="stack_trace.html"> | 5 <link rel="import" href="stack_trace.html"> |
| 6 </head> | 6 </head> |
| 7 <polymer-element name="message-viewer" extends="observatory-element"> | 7 <polymer-element name="message-viewer" extends="observatory-element"> |
| 8 <!-- | 8 <!-- |
| 9 This is a big switch statement which instantiates the custom element | 9 This is a big switch statement which instantiates the custom element |
| 10 designated to display the message type. | 10 designated to display the message type. |
| 11 --> | 11 --> |
| 12 <template> | 12 <template> |
| 13 <!-- If the message type is an IsolateList --> | 13 <!-- If the message type is an IsolateList --> |
| 14 <template if="{{ messageType == 'IsolateList' }}"> | 14 <template if="{{ messageType == 'IsolateList' }}"> |
| 15 <isolate-list app="{{ app }}"></isolate-list> | 15 <isolate-list app="{{ app }}"></isolate-list> |
| 16 </template> | 16 </template> |
| 17 <!-- If the message type is a StackTrace --> | 17 <!-- If the message type is a StackTrace --> |
| 18 <template if="{{ messageType == 'StackTrace' }}"> | 18 <template if="{{ messageType == 'StackTrace' }}"> |
| 19 <stack-trace app="{{ app }}" trace="{{ message }}"></stack-trace> | 19 <stack-trace app="{{ app }}" trace="{{ message }}"></stack-trace> |
| 20 </template> | 20 </template> |
| 21 <!-- If the message type is a RequestError --> | 21 <!-- If the message type is a RequestError --> |
| 22 <template if="{{ messageType == 'RequestError' }}"> | 22 <template if="{{ messageType == 'RequestError' }}"> |
| 23 <error-view app="{{ app }}" error="{{ message['error'] }}"></error-view> | 23 <error-view app="{{ app }}" error="{{ message['error'] }}"></error-view> |
| 24 </template> | 24 </template> |
| 25 <!-- Add new views and message types in the future here. --> | 25 <!-- Add new views and message types in the future here. --> |
| 26 </template> | 26 </template> |
| 27 <script type="application/dart" src="message_viewer.dart"></script> | 27 <script type="application/dart" src="message_viewer.dart"></script> |
| 28 </polymer-element> | 28 </polymer-element> |
| OLD | NEW |