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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/service_view.html

Issue 192443004: Complete the switch to ServiceObject (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="isolate_profile.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="service-view" extends="observatory-element">
18 <!--
19 This is a big switch statement which instantiates the custom element
20 designated to display the service object type.
21 -->
22 <template>
23 <!-- If the message type is an IsolateList -->
24 <template if="{{ object.serviceType == 'IsolateList' }}">
25 <isolate-list isolates="{{ object }}"></isolate-list>
26 </template>
27 <template if="{{ object.serviceType == 'Error' }}">
28 <error-view error="{{ object }}"></error-view>
29 </template>
30 <template if="{{ object.serviceType == 'Script' }}">
31 <script-view script="{{ object }}"></script-view>
32 </template>
33 <template if="{{ object.serviceType == 'StackTrace' }}">
34 <stack-trace trace="{{ object }}"></stack-trace>
35 </template>
36 <template if="{{ object.serviceType == 'Library' }}">
37 <library-view library="{{ object }}"></library-view>
38 </template>
39 <template if="{{ object.serviceType == 'Class' }}">
40 <class-view cls="{{ object }}"></class-view>
41 </template>
42 <template if="{{ object.serviceType == 'Function' }}">
43 <function-view function="{{ object }}"></function-view>
44 </template>
45 <template if="{{ object.serviceType == 'Field' }}">
46 <field-view field="{{ object }}"></field-view>
47 </template>
48 <template if="{{ object.serviceType == 'AllocationProfile' }}">
49 <heap-profile profile="{{ object }}"></heap-profile>
50 </template>
51 <template if="{{ object.serviceType == 'BreakpointList' }}">
52 <breakpoint-list msg="{{ object }}"></breakpoint-list>
53 </template>
54 <template if="{{ object.serviceType == 'Closure' }}">
55 <instance-view instance="{{ object }}"></instance-view>
56 </template>
57 <template if="{{ object.serviceType == 'Instance' }}">
58 <instance-view instance="{{ object }}"></instance-view>
59 </template>
60 <template if="{{ object.serviceType == 'Array' }}">
61 <instance-view instance="{{ object }}"></instance-view>
62 </template>
63 <template if="{{ object.serviceType == 'GrowableObjectArray' }}">
64 <instance-view instance="{{ object }}"></instance-view>
65 </template>
66 <template if="{{ object.serviceType == 'String' }}">
67 <instance-view instance="{{ object }}"></instance-view>
68 </template>
69 <template if="{{ object.serviceType == 'Bool' }}">
70 <instance-view instance="{{ object }}"></instance-view>
71 </template>
72 <template if="{{ object.serviceType == 'Smi' }}">
turnidge 2014/03/10 21:03:28 We should eventually merge all of the instance-vie
73 <instance-view instance="{{ object }}"></instance-view>
74 </template>
75 <template if="{{ object.serviceType == 'Code' }}">
76 <code-view code="{{ object }}"></code-view>
77 </template>
78 <template if="{{ object.serviceType == 'Profile' }}">
79 <isolate-profile profile="{{ object }}"></isolate-profile>
80 </template>
81 <!-- Add new views and service object types in the future here. -->
82 </template>
83 <script type="application/dart" src="service_view.dart"></script>
84 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698