OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2015 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/base/color_scheme.html"> | 8 <link rel="import" href="/tracing/base/color_scheme.html"> |
9 <link rel="import" href="/tracing/model/compound_event_selection_state.html"> | 9 <link rel="import" href="/tracing/model/compound_event_selection_state.html"> |
10 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> | 10 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 var colorId = tr.b.ColorScheme.getColorIdForGeneralPurposeString( | 65 var colorId = tr.b.ColorScheme.getColorIdForGeneralPurposeString( |
66 label); | 66 label); |
67 this.setLabelAndColorId(label, colorId); | 67 this.setLabelAndColorId(label, colorId); |
68 }, | 68 }, |
69 | 69 |
70 setLabelAndColorId: function(label, colorId) { | 70 setLabelAndColorId: function(label, colorId) { |
71 this.label_ = label; | 71 this.label_ = label; |
72 | 72 |
73 this.$.label.textContent = ''; | 73 this.$.label.textContent = ''; |
74 this.$.label.appendChild(tr.ui.b.asHTMLOrTextNode(label)); | 74 Polymer.dom(this.$.label).appendChild(tr.ui.b.asHTMLOrTextNode(label)); |
75 | 75 |
76 if (colorId === undefined) | 76 if (colorId === undefined) |
77 this.$.square.style.color = 'initial'; | 77 this.$.square.style.color = 'initial'; |
78 else | 78 else |
79 this.$.square.style.color = tr.b.ColorScheme.colorsAsStrings[colorId]; | 79 this.$.square.style.color = tr.b.ColorScheme.colorsAsStrings[colorId]; |
80 } | 80 } |
81 }); | 81 }); |
82 </script> | 82 </script> |
OLD | NEW |