OLD | NEW |
1 <head> | 1 <head> |
| 2 <link rel="import" href="breakpoint_list.html"> |
2 <link rel="import" href="class_view.html"> | 3 <link rel="import" href="class_view.html"> |
3 <link rel="import" href="code_view.html"> | 4 <link rel="import" href="code_view.html"> |
4 <link rel="import" href="error_view.html"> | 5 <link rel="import" href="error_view.html"> |
5 <link rel="import" href="field_view.html"> | 6 <link rel="import" href="field_view.html"> |
6 <link rel="import" href="function_view.html"> | 7 <link rel="import" href="function_view.html"> |
7 <link rel="import" href="instance_view.html"> | 8 <link rel="import" href="instance_view.html"> |
8 <link rel="import" href="isolate_list.html"> | 9 <link rel="import" href="isolate_list.html"> |
9 <link rel="import" href="library_view.html"> | 10 <link rel="import" href="library_view.html"> |
10 <link rel="import" href="observatory_element.html"> | 11 <link rel="import" href="observatory_element.html"> |
11 <link rel="import" href="script_view.html"> | 12 <link rel="import" href="script_view.html"> |
12 <link rel="import" href="source_view.html"> | 13 <link rel="import" href="source_view.html"> |
13 <link rel="import" href="stack_trace.html"> | 14 <link rel="import" href="stack_trace.html"> |
14 </head> | 15 </head> |
15 <polymer-element name="message-viewer" extends="observatory-element"> | 16 <polymer-element name="message-viewer" extends="observatory-element"> |
16 <!-- | 17 <!-- |
17 This is a big switch statement which instantiates the custom element | 18 This is a big switch statement which instantiates the custom element |
18 designated to display the message type. | 19 designated to display the message type. |
19 --> | 20 --> |
20 <template> | 21 <template> |
21 <!-- If the message type is an IsolateList --> | 22 <!-- If the message type is an IsolateList --> |
22 <template if="{{ messageType == 'IsolateList' }}"> | 23 <template if="{{ messageType == 'IsolateList' }}"> |
23 <isolate-list app="{{ app }}"></isolate-list> | 24 <isolate-list app="{{ app }}"></isolate-list> |
24 </template> | 25 </template> |
25 <!-- If the message type is a StackTrace --> | 26 <!-- If the message type is a StackTrace --> |
26 <template if="{{ messageType == 'StackTrace' }}"> | 27 <template if="{{ messageType == 'StackTrace' }}"> |
27 <stack-trace app="{{ app }}" trace="{{ message }}"></stack-trace> | 28 <stack-trace app="{{ app }}" trace="{{ message }}"></stack-trace> |
28 </template> | 29 </template> |
| 30 <template if="{{ messageType == 'BreakpointList' }}"> |
| 31 <breakpoint-list app="{{ app }}" msg="{{ message }}"></breakpoint-list> |
| 32 </template> |
29 <!-- If the message type is a RequestError --> | 33 <!-- If the message type is a RequestError --> |
30 <template if="{{ messageType == 'RequestError' }}"> | 34 <template if="{{ messageType == 'RequestError' }}"> |
31 <error-view app="{{ app }}" error="{{ message['error'] }}"></error-view> | 35 <error-view app="{{ app }}" error="{{ message['error'] }}"></error-view> |
32 </template> | 36 </template> |
33 <template if="{{ messageType == 'Library' }}"> | 37 <template if="{{ messageType == 'Library' }}"> |
34 <library-view app="{{ app }}" library="{{ message }}"></library-view> | 38 <library-view app="{{ app }}" library="{{ message }}"></library-view> |
35 </template> | 39 </template> |
36 <template if="{{ messageType == 'Class' }}"> | 40 <template if="{{ messageType == 'Class' }}"> |
37 <class-view app="{{ app }}" cls="{{ message }}"></class-view> | 41 <class-view app="{{ app }}" cls="{{ message }}"></class-view> |
38 </template> | 42 </template> |
(...skipping 24 matching lines...) Expand all Loading... |
63 <template if="{{ messageType == 'Code' }}"> | 67 <template if="{{ messageType == 'Code' }}"> |
64 <code-view app="{{ app }}" code="{{ message }}"></code-view> | 68 <code-view app="{{ app }}" code="{{ message }}"></code-view> |
65 </template> | 69 </template> |
66 <template if="{{ messageType == 'Script' }}"> | 70 <template if="{{ messageType == 'Script' }}"> |
67 <script-view app="{{ app }}" script="{{ message }}"></script-view> | 71 <script-view app="{{ app }}" script="{{ message }}"></script-view> |
68 </template> | 72 </template> |
69 <!-- Add new views and message types in the future here. --> | 73 <!-- Add new views and message types in the future here. --> |
70 </template> | 74 </template> |
71 <script type="application/dart" src="message_viewer.dart"></script> | 75 <script type="application/dart" src="message_viewer.dart"></script> |
72 </polymer-element> | 76 </polymer-element> |
OLD | NEW |