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

Side by Side Diff: tracing/tracing/value/ui/histogram_set_table_name_cell.html

Issue 3002923002: Bold names of source Histograms in histogram-set-table. (Closed)
Patch Set: Created 3 years, 4 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 unified diff | Download patch
« no previous file with comments | « tracing/tracing/value/ui/histogram_set_table.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « tracing/tracing/value/ui/histogram_set_table.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698