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

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

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
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 <link rel="import" href="/tracing/base/iteration_helpers.html"> 7 <link rel="import" href="/tracing/base/iteration_helpers.html">
8 <link rel="import" href="/tracing/base/statistics.html"> 8 <link rel="import" href="/tracing/base/statistics.html">
9 <link rel="import" href="/tracing/ui/analysis/generic_object_view.html"> 9 <link rel="import" href="/tracing/ui/analysis/generic_object_view.html">
10 <link rel="import" href="/tracing/ui/base/table.html"> 10 <link rel="import" href="/tracing/ui/base/table.html">
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 var iA = isColumnNameImportant[a.title] ? 1 : 0; 207 var iA = isColumnNameImportant[a.title] ? 1 : 0;
208 var iB = isColumnNameImportant[b.title] ? 1 : 0; 208 var iB = isColumnNameImportant[b.title] ? 1 : 0;
209 if ((iB - iA) !== 0) 209 if ((iB - iA) !== 0)
210 return iB - iA; 210 return iB - iA;
211 return a.title.localeCompare(b.title); 211 return a.title.localeCompare(b.title);
212 }); 212 });
213 213
214 // Set sizes. This is convoluted by the fact that the first 214 // Set sizes. This is convoluted by the fact that the first
215 // table column must have fixed size. 215 // table column must have fixed size.
216 var colWidthPercentage; 216 var colWidthPercentage;
217 if (columns.length == 1) 217 if (columns.length === 1)
218 colWidthPercentage = '100%'; 218 colWidthPercentage = '100%';
219 else 219 else
220 colWidthPercentage = (100 / (columns.length - 1)).toFixed(3) + '%'; 220 colWidthPercentage = (100 / (columns.length - 1)).toFixed(3) + '%';
221 columns[0].width = '250px'; 221 columns[0].width = '250px';
222 for (var i = 1; i < columns.length; i++) 222 for (var i = 1; i < columns.length; i++)
223 columns[i].width = colWidthPercentage; 223 columns[i].width = colWidthPercentage;
224 224
225 return columns; 225 return columns;
226 }, 226 },
227 227
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 this.$.table.cellHighlightStyle = cellHighlightStyle; 292 this.$.table.cellHighlightStyle = cellHighlightStyle;
293 } 293 }
294 }); 294 });
295 295
296 return { 296 return {
297 GenericTableViewTotalsItem: GenericTableViewTotalsItem, 297 GenericTableViewTotalsItem: GenericTableViewTotalsItem,
298 GenericTableViewColumnDescriptor: GenericTableViewColumnDescriptor 298 GenericTableViewColumnDescriptor: GenericTableViewColumnDescriptor
299 }; 299 };
300 }); 300 });
301 </script> 301 </script>
OLDNEW
« tracing/tracing/ui/base/table.html ('K') | « tracing/tracing/value/numeric.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698