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

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

Issue 184233007: Refactor Observatory (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 months 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
(Empty)
1 <head>
2 <link rel="import" href="breakpoint_list.html">
3 <link rel="import" href="class_view.html">
4 <link rel="import" href="code_view.html">
5 <link rel="import" href="error_view.html">
6 <link rel="import" href="field_view.html">
7 <link rel="import" href="function_view.html">
8 <link rel="import" href="heap_profile.html">
9 <link rel="import" href="instance_view.html">
10 <link rel="import" href="isolate_list.html">
11 <link rel="import" href="json_view.html">
12 <link rel="import" href="library_view.html">
13 <link rel="import" href="observatory_element.html">
14 <link rel="import" href="script_view.html">
15 <link rel="import" href="stack_trace.html">
16 </head>
17 <polymer-element name="message-viewer" extends="observatory-element">
18 <!--
19 This is a big switch statement which instantiates the custom element
20 designated to display the message type.
21 -->
22 <template>
23 <!-- If the message type is an IsolateList -->
24 <template if="{{ messageType == 'IsolateList' }}">
25 <isolate-list app="{{ app }}"></isolate-list>
26 </template>
27 <!-- If the message type is a StackTrace -->
28 <template if="{{ messageType == 'StackTrace' }}">
29 <stack-trace app="{{ app }}" trace="{{ message }}"></stack-trace>
30 </template>
31 <template if="{{ messageType == 'BreakpointList' }}">
32 <breakpoint-list app="{{ app }}" msg="{{ message }}"></breakpoint-list>
33 </template>
34 <template if="{{ messageType == 'Error' }}">
35 <error-view app="{{ app }}" error="{{ message }}"></error-view>
36 </template>
37 <template if="{{ messageType == 'Library' }}">
38 <library-view app="{{ app }}" library="{{ message }}"></library-view>
39 </template>
40 <template if="{{ messageType == 'Class' }}">
41 <class-view app="{{ app }}" cls="{{ message }}"></class-view>
42 </template>
43 <template if="{{ messageType == 'Field' }}">
44 <field-view app="{{ app }}" field="{{ message }}"></field-view>
45 </template>
46 <template if="{{ messageType == 'Closure' }}">
47 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
48 </template>
49 <template if="{{ messageType == 'Instance' }}">
50 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
51 </template>
52 <template if="{{ messageType == 'Array' }}">
53 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
54 </template>
55 <template if="{{ messageType == 'GrowableObjectArray' }}">
56 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
57 </template>
58 <template if="{{ messageType == 'String' }}">
59 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
60 </template>
61 <template if="{{ messageType == 'Bool' }}">
62 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
63 </template>
64 <template if="{{ messageType == 'Smi' }}">
65 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view>
66 </template>
67 <template if="{{ messageType == 'Function' }}">
68 <function-view app="{{ app }}" function="{{ message }}"></function-view>
69 </template>
70 <template if="{{ messageType == 'Code' }}">
71 <code-view app="{{ app }}" code="{{ message['code'] }}"></code-view>
72 </template>
73 <template if="{{ messageType == 'Script' }}">
74 <script-view app="{{ app }}" script="{{ message['script'] }}"></script-vie w>
75 </template>
76 <template if="{{ messageType == 'AllocationProfile' }}">
77 <heap-profile app="{{ app }}" profile="{{ message }}"></heap-profile>
78 </template>
79 <template if="{{ messageType == 'CPU' }}">
80 <json-view json="{{ message }}"></json-view>
81 </template>
82 <!-- Add new views and message types in the future here. -->
83 </template>
84 <script type="application/dart" src="message_viewer.dart"></script>
85 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698