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"> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 * @return {Element} | 57 * @return {Element} |
58 */ | 58 */ |
59 function createDiagnosticSpan(diagnostic) { | 59 function createDiagnosticSpan(diagnostic) { |
60 var tagName = findElementNameForDiagnostic(diagnostic); | 60 var tagName = findElementNameForDiagnostic(diagnostic); |
61 var span = document.createElement(tagName); | 61 var span = document.createElement(tagName); |
62 span.diagnostic = diagnostic; | 62 span.diagnostic = diagnostic; |
63 return span; | 63 return span; |
64 } | 64 } |
65 | 65 |
66 return { | 66 return { |
67 createDiagnosticSpan: createDiagnosticSpan | 67 createDiagnosticSpan, |
68 }; | 68 }; |
69 }); | 69 }); |
70 </script> | 70 </script> |
OLD | NEW |