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

Side by Side Diff: tracing/tracing/ui/analysis/memory_dump_heap_details_util.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test Created 3 years, 9 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 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/color_scheme.html"> 8 <link rel="import" href="/tracing/base/color_scheme.html">
9 <link rel="import" href="/tracing/ui/analysis/memory_dump_sub_view_util.html"> 9 <link rel="import" href="/tracing/ui/analysis/memory_dump_sub_view_util.html">
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 /** @{constructor} */ 33 /** @{constructor} */
34 function HeapDetailsTitleColumn(title) { 34 function HeapDetailsTitleColumn(title) {
35 tr.ui.analysis.TitleColumn.call(this, title); 35 tr.ui.analysis.TitleColumn.call(this, title);
36 } 36 }
37 37
38 HeapDetailsTitleColumn.prototype = { 38 HeapDetailsTitleColumn.prototype = {
39 __proto__: tr.ui.analysis.TitleColumn.prototype, 39 __proto__: tr.ui.analysis.TitleColumn.prototype,
40 40
41 formatTitle: function(row) { 41 formatTitle: function(row) {
42 if (row.dimension === HeapDetailsRowDimension.ROOT) 42 if (row.dimension === HeapDetailsRowDimension.ROOT) {
43 return row.title; 43 return row.title;
44 }
44 45
45 var symbolEl = document.createElement('span'); 46 var symbolEl = document.createElement('span');
46 Polymer.dom(symbolEl).textContent = row.dimension.symbol; 47 Polymer.dom(symbolEl).textContent = row.dimension.symbol;
47 symbolEl.title = row.dimension.label; 48 symbolEl.title = row.dimension.label;
48 symbolEl.style.color = tr.b.ColorScheme.getColorForReservedNameAsString( 49 symbolEl.style.color = tr.b.ColorScheme.getColorForReservedNameAsString(
49 row.dimension.color); 50 row.dimension.color);
50 symbolEl.style.paddingRight = '4px'; 51 symbolEl.style.paddingRight = '4px';
51 symbolEl.style.cursor = 'help'; 52 symbolEl.style.cursor = 'help';
52 symbolEl.style.fontWeight = 'bold'; 53 symbolEl.style.fontWeight = 'bold';
53 54
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ]; 92 ];
92 93
93 return { 94 return {
94 HeapDetailsRowDimension, 95 HeapDetailsRowDimension,
95 HeapDetailsTitleColumn, 96 HeapDetailsTitleColumn,
96 AllocationCountColumn, 97 AllocationCountColumn,
97 HEAP_DETAILS_COLUMN_RULES, 98 HEAP_DETAILS_COLUMN_RULES,
98 }; 99 };
99 }); 100 });
100 </script> 101 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698