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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/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
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="heap_profile.html"> 8 <link rel="import" href="heap_profile.html">
9 <link rel="import" href="instance_view.html"> 9 <link rel="import" href="instance_view.html">
10 <link rel="import" href="isolate_list.html"> 10 <link rel="import" href="isolate_list.html">
11 <link rel="import" href="json_view.html"> 11 <link rel="import" href="isolate_profile.html">
12 <link rel="import" href="library_view.html"> 12 <link rel="import" href="library_view.html">
13 <link rel="import" href="observatory_element.html"> 13 <link rel="import" href="observatory_element.html">
14 <link rel="import" href="script_view.html"> 14 <link rel="import" href="script_view.html">
15 <link rel="import" href="stack_trace.html"> 15 <link rel="import" href="stack_trace.html">
16 </head> 16 </head>
17 <polymer-element name="message-viewer" extends="observatory-element"> 17 <polymer-element name="message-viewer" extends="observatory-element">
18 <!-- 18 <!--
19 This is a big switch statement which instantiates the custom element 19 This is a big switch statement which instantiates the custom element
20 designated to display the message type. 20 designated to display the message type.
21 --> 21 -->
22 <template> 22 <template>
23 <!-- If the message type is an IsolateList --> 23 <!-- If the message type is an IsolateList -->
24 <template if="{{ messageType == 'IsolateList' }}"> 24 <template if="{{ messageType == 'IsolateList' }}">
25 <isolate-list app="{{ app }}"></isolate-list> 25 <isolate-list vm="{{ app.vm }}"></isolate-list>
26 </template> 26 </template>
27 <!-- If the message type is a StackTrace --> 27 <!-- If the message type is a StackTrace -->
28 <template if="{{ messageType == 'StackTrace' }}"> 28 <template if="{{ messageType == 'StackTrace' }}">
29 <stack-trace app="{{ app }}" trace="{{ message }}"></stack-trace> 29 <stack-trace isolate="{{ app.isolate }}" trace="{{ message }}"></stack-tra ce>
30 </template> 30 </template>
31 <template if="{{ messageType == 'BreakpointList' }}"> 31 <template if="{{ messageType == 'BreakpointList' }}">
32 <breakpoint-list app="{{ app }}" msg="{{ message }}"></breakpoint-list> 32 <breakpoint-list isolate="{{ app.isolate }}" msg="{{ message }}"></breakpo int-list>
33 </template> 33 </template>
34 <template if="{{ messageType == 'Error' }}"> 34 <template if="{{ messageType == 'Error' }}">
35 <error-view app="{{ app }}" error="{{ message }}"></error-view> 35 <error-view isolate="{{ app.isolate }}" error="{{ message }}"></error-view >
36 </template> 36 </template>
37 <template if="{{ messageType == 'Library' }}"> 37 <template if="{{ messageType == 'Library' }}">
38 <library-view app="{{ app }}" library="{{ message }}"></library-view> 38 <library-view isolate="{{ app.isolate }}" library="{{ message }}"></librar y-view>
39 </template> 39 </template>
40 <template if="{{ messageType == 'Class' }}"> 40 <template if="{{ messageType == 'Class' }}">
41 <class-view app="{{ app }}" cls="{{ message }}"></class-view> 41 <class-view isolate="{{ app.isolate }}" cls="{{ message }}"></class-view>
42 </template> 42 </template>
43 <template if="{{ messageType == 'Field' }}"> 43 <template if="{{ messageType == 'Field' }}">
44 <field-view app="{{ app }}" field="{{ message }}"></field-view> 44 <field-view isolate="{{ app.isolate }}" field="{{ message }}"></field-view >
45 </template> 45 </template>
46 <template if="{{ messageType == 'Closure' }}"> 46 <template if="{{ messageType == 'Closure' }}">
47 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view> 47 <instance-view isolate="{{ app.isolate }}" instance="{{ message }}"></inst ance-view>
48 </template> 48 </template>
49 <template if="{{ messageType == 'Instance' }}"> 49 <template if="{{ messageType == 'Instance' }}">
50 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view> 50 <instance-view isolate="{{ app.isolate }}" instance="{{ message }}"></inst ance-view>
51 </template> 51 </template>
52 <template if="{{ messageType == 'Array' }}"> 52 <template if="{{ messageType == 'Array' }}">
53 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view> 53 <instance-view isolate="{{ app.isolate }}" instance="{{ message }}"></inst ance-view>
54 </template> 54 </template>
55 <template if="{{ messageType == 'GrowableObjectArray' }}"> 55 <template if="{{ messageType == 'GrowableObjectArray' }}">
56 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view> 56 <instance-view isolate="{{ app.isolate }}" instance="{{ message }}"></inst ance-view>
57 </template> 57 </template>
58 <template if="{{ messageType == 'String' }}"> 58 <template if="{{ messageType == 'String' }}">
59 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view> 59 <instance-view isolate="{{ app.isolate }}" instance="{{ message }}"></inst ance-view>
60 </template> 60 </template>
61 <template if="{{ messageType == 'Bool' }}"> 61 <template if="{{ messageType == 'Bool' }}">
62 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view> 62 <instance-view isolate="{{ app.isolate }}" instance="{{ message }}"></inst ance-view>
63 </template> 63 </template>
64 <template if="{{ messageType == 'Smi' }}"> 64 <template if="{{ messageType == 'Smi' }}">
65 <instance-view app="{{ app }}" instance="{{ message }}"></instance-view> 65 <instance-view isolate="{{ app.isolate }}" instance="{{ message }}"></inst ance-view>
66 </template> 66 </template>
67 <template if="{{ messageType == 'Function' }}"> 67 <template if="{{ messageType == 'Function' }}">
68 <function-view app="{{ app }}" function="{{ message }}"></function-view> 68 <function-view isolate="{{ app.isolate }}" function="{{ message }}"></func tion-view>
69 </template> 69 </template>
70 <template if="{{ messageType == 'Code' }}"> 70 <template if="{{ messageType == 'Code' }}">
71 <code-view app="{{ app }}" code="{{ message['code'] }}"></code-view> 71 <code-view isolate="{{ app.isolate }}" code="{{ message['code'] }}"></code -view>
72 </template> 72 </template>
73 <template if="{{ messageType == 'Script' }}"> 73 <template if="{{ messageType == 'Script' }}">
74 <script-view app="{{ app }}" script="{{ message['script'] }}"></script-vie w> 74 <script-view isolate="{{ app.isolate }}" script="{{ message['script'] }}"> </script-view>
75 </template> 75 </template>
76 <template if="{{ messageType == 'AllocationProfile' }}"> 76 <template if="{{ messageType == 'AllocationProfile' }}">
77 <heap-profile app="{{ app }}" profile="{{ message }}"></heap-profile> 77 <heap-profile isolate="{{ app.isolate }}" profile="{{ message }}"></heap-p rofile>
78 </template> 78 </template>
79 <template if="{{ messageType == 'CPU' }}"> 79 <template if="{{ messageType == 'Profile' }}">
80 <json-view json="{{ message }}"></json-view> 80 <isolate-profile isolate="{{ app.isolate }}" profile="{{ message }}"></iso late-profile>
81 </template> 81 </template>
82 <!-- Add new views and message types in the future here. --> 82 <!-- Add new views and message types in the future here. -->
83 </template> 83 </template>
84 <script type="application/dart" src="message_viewer.dart"></script> 84 <script type="application/dart" src="message_viewer.dart"></script>
85 </polymer-element> 85 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698