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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/client/lib/src/elements/service_view.html
diff --git a/runtime/bin/vmservice/client/lib/src/elements/service_view.html b/runtime/bin/vmservice/client/lib/src/elements/service_view.html
new file mode 100644
index 0000000000000000000000000000000000000000..ecc79542d6b980162dda74a8c476fe34f7e0d8cc
--- /dev/null
+++ b/runtime/bin/vmservice/client/lib/src/elements/service_view.html
@@ -0,0 +1,84 @@
+<head>
+ <link rel="import" href="breakpoint_list.html">
+ <link rel="import" href="class_view.html">
+ <link rel="import" href="code_view.html">
+ <link rel="import" href="error_view.html">
+ <link rel="import" href="field_view.html">
+ <link rel="import" href="function_view.html">
+ <link rel="import" href="heap_profile.html">
+ <link rel="import" href="instance_view.html">
+ <link rel="import" href="isolate_list.html">
+ <link rel="import" href="isolate_profile.html">
+ <link rel="import" href="library_view.html">
+ <link rel="import" href="observatory_element.html">
+ <link rel="import" href="script_view.html">
+ <link rel="import" href="stack_trace.html">
+</head>
+<polymer-element name="service-view" extends="observatory-element">
+ <!--
+ This is a big switch statement which instantiates the custom element
+ designated to display the service object type.
+ -->
+ <template>
+ <!-- If the message type is an IsolateList -->
+ <template if="{{ object.serviceType == 'IsolateList' }}">
+ <isolate-list isolates="{{ object }}"></isolate-list>
+ </template>
+ <template if="{{ object.serviceType == 'Error' }}">
+ <error-view error="{{ object }}"></error-view>
+ </template>
+ <template if="{{ object.serviceType == 'Script' }}">
+ <script-view script="{{ object }}"></script-view>
+ </template>
+ <template if="{{ object.serviceType == 'StackTrace' }}">
+ <stack-trace trace="{{ object }}"></stack-trace>
+ </template>
+ <template if="{{ object.serviceType == 'Library' }}">
+ <library-view library="{{ object }}"></library-view>
+ </template>
+ <template if="{{ object.serviceType == 'Class' }}">
+ <class-view cls="{{ object }}"></class-view>
+ </template>
+ <template if="{{ object.serviceType == 'Function' }}">
+ <function-view function="{{ object }}"></function-view>
+ </template>
+ <template if="{{ object.serviceType == 'Field' }}">
+ <field-view field="{{ object }}"></field-view>
+ </template>
+ <template if="{{ object.serviceType == 'AllocationProfile' }}">
+ <heap-profile profile="{{ object }}"></heap-profile>
+ </template>
+ <template if="{{ object.serviceType == 'BreakpointList' }}">
+ <breakpoint-list msg="{{ object }}"></breakpoint-list>
+ </template>
+ <template if="{{ object.serviceType == 'Closure' }}">
+ <instance-view instance="{{ object }}"></instance-view>
+ </template>
+ <template if="{{ object.serviceType == 'Instance' }}">
+ <instance-view instance="{{ object }}"></instance-view>
+ </template>
+ <template if="{{ object.serviceType == 'Array' }}">
+ <instance-view instance="{{ object }}"></instance-view>
+ </template>
+ <template if="{{ object.serviceType == 'GrowableObjectArray' }}">
+ <instance-view instance="{{ object }}"></instance-view>
+ </template>
+ <template if="{{ object.serviceType == 'String' }}">
+ <instance-view instance="{{ object }}"></instance-view>
+ </template>
+ <template if="{{ object.serviceType == 'Bool' }}">
+ <instance-view instance="{{ object }}"></instance-view>
+ </template>
+ <template if="{{ object.serviceType == 'Smi' }}">
turnidge 2014/03/10 21:03:28 We should eventually merge all of the instance-vie
+ <instance-view instance="{{ object }}"></instance-view>
+ </template>
+ <template if="{{ object.serviceType == 'Code' }}">
+ <code-view code="{{ object }}"></code-view>
+ </template>
+ <template if="{{ object.serviceType == 'Profile' }}">
+ <isolate-profile profile="{{ object }}"></isolate-profile>
+ </template>
+ <!-- Add new views and service object types in the future here. -->
+ </template>
+ <script type="application/dart" src="service_view.dart"></script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698