OLD | NEW |
1 <head> | 1 <head> |
2 <link rel="import" href="breakpoint_list.html"> | 2 <link rel="import" href="breakpoint_list.html"> |
3 <link rel="import" href="class_view.html"> | 3 <link rel="import" href="class_view.html"> |
4 <link rel="import" href="code_view.html"> | 4 <link rel="import" href="code_view.html"> |
5 <link rel="import" href="error_view.html"> | 5 <link rel="import" href="error_view.html"> |
6 <link rel="import" href="field_view.html"> | 6 <link rel="import" href="field_view.html"> |
7 <link rel="import" href="function_view.html"> | 7 <link rel="import" href="function_view.html"> |
8 <link rel="import" href="instance_view.html"> | 8 <link rel="import" href="instance_view.html"> |
9 <link rel="import" href="isolate_list.html"> | 9 <link rel="import" href="isolate_list.html"> |
| 10 <link rel="import" href="json_view.html"> |
10 <link rel="import" href="library_view.html"> | 11 <link rel="import" href="library_view.html"> |
11 <link rel="import" href="observatory_element.html"> | 12 <link rel="import" href="observatory_element.html"> |
12 <link rel="import" href="script_view.html"> | 13 <link rel="import" href="script_view.html"> |
13 <link rel="import" href="source_view.html"> | 14 <link rel="import" href="source_view.html"> |
14 <link rel="import" href="stack_trace.html"> | 15 <link rel="import" href="stack_trace.html"> |
15 </head> | 16 </head> |
16 <polymer-element name="message-viewer" extends="observatory-element"> | 17 <polymer-element name="message-viewer" extends="observatory-element"> |
17 <!-- | 18 <!-- |
18 This is a big switch statement which instantiates the custom element | 19 This is a big switch statement which instantiates the custom element |
19 designated to display the message type. | 20 designated to display the message type. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 </template> | 64 </template> |
64 <template if="{{ messageType == 'Function' }}"> | 65 <template if="{{ messageType == 'Function' }}"> |
65 <function-view app="{{ app }}" function="{{ message }}"></function-view> | 66 <function-view app="{{ app }}" function="{{ message }}"></function-view> |
66 </template> | 67 </template> |
67 <template if="{{ messageType == 'Code' }}"> | 68 <template if="{{ messageType == 'Code' }}"> |
68 <code-view app="{{ app }}" code="{{ message }}"></code-view> | 69 <code-view app="{{ app }}" code="{{ message }}"></code-view> |
69 </template> | 70 </template> |
70 <template if="{{ messageType == 'Script' }}"> | 71 <template if="{{ messageType == 'Script' }}"> |
71 <script-view app="{{ app }}" script="{{ message }}"></script-view> | 72 <script-view app="{{ app }}" script="{{ message }}"></script-view> |
72 </template> | 73 </template> |
| 74 <template if="{{ messageType == 'CPU' }}"> |
| 75 <json-view json="{{ message }}"></json-view> |
| 76 </template> |
73 <!-- Add new views and message types in the future here. --> | 77 <!-- Add new views and message types in the future here. --> |
74 </template> | 78 </template> |
75 <script type="application/dart" src="message_viewer.dart"></script> | 79 <script type="application/dart" src="message_viewer.dart"></script> |
76 </polymer-element> | 80 </polymer-element> |
OLD | NEW |