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/base/timing.html"> | 8 <link rel="import" href="/tracing/base/timing.html"> |
9 <link rel="import" href="/tracing/ui/base/name_line_chart.html"> | 9 <link rel="import" href="/tracing/ui/base/name_line_chart.html"> |
10 | 10 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 if (cell instanceof tr.v.Histogram && | 190 if (cell instanceof tr.v.Histogram && |
191 cell.numValues > 0) { | 191 cell.numValues > 0) { |
192 ++histogramCount; | 192 ++histogramCount; |
193 } | 193 } |
194 } | 194 } |
195 if (histogramCount <= 1) { | 195 if (histogramCount <= 1) { |
196 this.$.open_histograms.style.display = 'none'; | 196 this.$.open_histograms.style.display = 'none'; |
197 } | 197 } |
198 }, | 198 }, |
199 | 199 |
| 200 set isSource(s) { |
| 201 this.$.name.style.fontWeight = s ? 'bold' : 'normal'; |
| 202 }, |
| 203 |
200 set constrainWidth(constrain) { | 204 set constrainWidth(constrain) { |
201 this.$.name.style.maxWidth = constrain ? | 205 this.$.name.style.maxWidth = constrain ? |
202 (this.nameWidthPx + 'px') : 'none'; | 206 (this.nameWidthPx + 'px') : 'none'; |
203 }, | 207 }, |
204 | 208 |
205 get nameWidthPx() { | 209 get nameWidthPx() { |
206 // tr-ui-b-table adds 16px of padding for each additional level of subRows | 210 // tr-ui-b-table adds 16px of padding for each additional level of subRows |
207 // nesting, so outer nameDivs can be wider than inner nameDivs. | 211 // nesting, so outer nameDivs can be wider than inner nameDivs. |
208 return NAME_COLUMN_WIDTH_PX - (16 * this.row.depth); | 212 return NAME_COLUMN_WIDTH_PX - (16 * this.row.depth); |
209 }, | 213 }, |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 this.$.open_histograms.style.display = mostlyOpen ? 'none' : 'block'; | 356 this.$.open_histograms.style.display = mostlyOpen ? 'none' : 'block'; |
353 this.$.close_histograms.style.display = mostlyOpen ? 'block' : 'none'; | 357 this.$.close_histograms.style.display = mostlyOpen ? 'block' : 'none'; |
354 } | 358 } |
355 }); | 359 }); |
356 | 360 |
357 return { | 361 return { |
358 NAME_COLUMN_WIDTH_PX, | 362 NAME_COLUMN_WIDTH_PX, |
359 }; | 363 }; |
360 }); | 364 }); |
361 </script> | 365 </script> |
OLD | NEW |