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

Side by Side Diff: tracing/tracing/ui/analysis/memory_dump_header_pane.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 2015 The Chromium Authors. All rights reserved. 3 Copyright 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/unit.html"> 8 <link rel="import" href="/tracing/base/unit.html">
9 <link rel="import" href="/tracing/ui/analysis/memory_dump_overview_pane.html"> 9 <link rel="import" href="/tracing/ui/analysis/memory_dump_overview_pane.html">
10 <link rel="import" href="/tracing/ui/analysis/memory_dump_sub_view_util.html"> 10 <link rel="import" href="/tracing/ui/analysis/memory_dump_sub_view_util.html">
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 document.createTextNode(ELLIPSIS)); 139 document.createTextNode(ELLIPSIS));
140 Polymer.dom(this.$.label).appendChild(document.createTextNode( 140 Polymer.dom(this.$.label).appendChild(document.createTextNode(
141 tr.b.Unit.byName.timeStampInMs.format( 141 tr.b.Unit.byName.timeStampInMs.format(
142 this.containerMemoryDumps_[containerDumpCount - 1].start))); 142 this.containerMemoryDumps_[containerDumpCount - 1].start)));
143 } 143 }
144 }, 144 },
145 145
146 updateAggregationModeSelector_: function() { 146 updateAggregationModeSelector_: function() {
147 var displayStyle; 147 var displayStyle;
148 if (this.containerMemoryDumps_ === undefined || 148 if (this.containerMemoryDumps_ === undefined ||
149 this.containerMemoryDumps_.length <= 1) 149 this.containerMemoryDumps_.length <= 1) {
150 displayStyle = 'none'; 150 displayStyle = 'none';
151 else 151 } else {
152 displayStyle = 'initial'; 152 displayStyle = 'initial';
153 }
153 this.$.aggregation_mode_container.style.display = displayStyle; 154 this.$.aggregation_mode_container.style.display = displayStyle;
154 }, 155 },
155 156
156 changeChildPane_: function() { 157 changeChildPane_: function() {
157 this.childPaneBuilder = function() { 158 this.childPaneBuilder = function() {
158 if (this.containerMemoryDumps_ === undefined || 159 if (this.containerMemoryDumps_ === undefined ||
159 this.containerMemoryDumps_.length <= 0) 160 this.containerMemoryDumps_.length <= 0) {
160 return undefined; 161 return undefined;
162 }
161 163
162 var overviewPane = document.createElement( 164 var overviewPane = document.createElement(
163 'tr-ui-a-memory-dump-overview-pane'); 165 'tr-ui-a-memory-dump-overview-pane');
164 overviewPane.processMemoryDumps = this.containerMemoryDumps_.map( 166 overviewPane.processMemoryDumps = this.containerMemoryDumps_.map(
165 function(containerDump) { 167 function(containerDump) {
166 return containerDump.processMemoryDumps; 168 return containerDump.processMemoryDumps;
167 }); 169 });
168 overviewPane.aggregationMode = this.aggregationMode; 170 overviewPane.aggregationMode = this.aggregationMode;
169 return overviewPane; 171 return overviewPane;
170 }.bind(this); 172 }.bind(this);
171 } 173 }
172 }); 174 });
173 175
174 return {}; 176 return {};
175 }); 177 });
176 </script> 178 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698