OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright 2016 The Chromium Authors. All rights reserved. | 3 Copyright 2016 The Chromium Authors. All rights reserved. |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 | 7 |
8 <link rel="import" href="/tracing/ui/base/deep_utils.html"> | 8 <link rel="import" href="/tracing/ui/base/deep_utils.html"> |
9 <link rel="import" href="/tracing/value/diagnostics/diagnostic.html"> | 9 <link rel="import" href="/tracing/value/diagnostics/diagnostic.html"> |
10 <link rel="import" href="/tracing/value/ui/breakdown_span.html"> | 10 <link rel="import" href="/tracing/value/ui/breakdown_span.html"> |
11 <link rel="import" href="/tracing/value/ui/collected_related_event_set_span.html
"> | 11 <link rel="import" href="/tracing/value/ui/collected_related_event_set_span.html
"> |
12 <link rel="import" href="/tracing/value/ui/date_range_span.html"> | 12 <link rel="import" href="/tracing/value/ui/date_range_span.html"> |
13 <link rel="import" href="/tracing/value/ui/generic_set_span.html"> | 13 <link rel="import" href="/tracing/value/ui/generic_set_span.html"> |
14 <link rel="import" href="/tracing/value/ui/merged_telemetry_info_span.html"> | |
15 <link rel="import" href="/tracing/value/ui/related_event_set_span.html"> | 14 <link rel="import" href="/tracing/value/ui/related_event_set_span.html"> |
16 <link rel="import" href="/tracing/value/ui/related_histogram_map_span.html"> | 15 <link rel="import" href="/tracing/value/ui/related_histogram_map_span.html"> |
17 <link rel="import" href="/tracing/value/ui/scalar_diagnostic_span.html"> | 16 <link rel="import" href="/tracing/value/ui/scalar_diagnostic_span.html"> |
18 <link rel="import" href="/tracing/value/ui/tag_map_span.html"> | 17 <link rel="import" href="/tracing/value/ui/tag_map_span.html"> |
19 <link rel="import" href="/tracing/value/ui/telemetry_info_span.html"> | |
20 <link rel="import" href="/tracing/value/ui/unmergeable_diagnostic_set_span.html"
> | 18 <link rel="import" href="/tracing/value/ui/unmergeable_diagnostic_set_span.html"
> |
21 | 19 |
22 <script> | 20 <script> |
23 'use strict'; | 21 'use strict'; |
24 tr.exportTo('tr.v.ui', function() { | 22 tr.exportTo('tr.v.ui', function() { |
25 /** | 23 /** |
26 * Find the name of a polymer element registered to display |diagnostic| | 24 * Find the name of a polymer element registered to display |diagnostic| |
27 * or one of its base classes. | 25 * or one of its base classes. |
28 * | 26 * |
29 * @param {!tr.v.d.Diagnostic} diagnostic | 27 * @param {!tr.v.d.Diagnostic} diagnostic |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 if (span.build === undefined) throw new Error(tagName); | 66 if (span.build === undefined) throw new Error(tagName); |
69 span.build(diagnostic, name, histogram); | 67 span.build(diagnostic, name, histogram); |
70 return span; | 68 return span; |
71 } | 69 } |
72 | 70 |
73 return { | 71 return { |
74 createDiagnosticSpan, | 72 createDiagnosticSpan, |
75 }; | 73 }; |
76 }); | 74 }); |
77 </script> | 75 </script> |
OLD | NEW |