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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js

Issue 1774503005: [DevTools] Roll closure compiler to ToT version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
index 404a6b609e72902129996f947b101b2ae69ce30b..ff1ce375b5b936c06ca4e353858119f9dd0841cf 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineTreeView.js
@@ -153,13 +153,16 @@ WebInspector.TimelineTreeView.prototype = {
},
/**
- * @param {!Array.<!WebInspector.DataGrid.ColumnDescriptor>} columns
+ * @param {!Array<!WebInspector.DataGrid.ColumnDescriptor>} columns
*/
_populateColumns: function(columns)
{
- columns.push({id: "self", title: WebInspector.UIString("Self Time"), width: "110px", fixedWidth: true, sortable: true});
- columns.push({id: "total", title: WebInspector.UIString("Total Time"), width: "110px", fixedWidth: true, sortable: true});
- columns.push({id: "activity", title: WebInspector.UIString("Activity"), disclosure: true, sortable: true});
+ var columnDescriptors = [
+ {id: "self", title: WebInspector.UIString("Self Time"), width: "110px", fixedWidth: true, sortable: true},
+ {id: "total", title: WebInspector.UIString("Total Time"), width: "110px", fixedWidth: true, sortable: true},
+ {id: "activity", title: WebInspector.UIString("Activity"), disclosure: true, sortable: true}];
+ for (var descriptor of columnDescriptors)
+ columns.push(/** @type {!WebInspector.DataGrid.ColumnDescriptor} */(descriptor));
},
_sortingChanged: function()
@@ -898,7 +901,8 @@ WebInspector.EventsTimelineTreeView.prototype = {
*/
_populateColumns: function(columns)
{
- columns.push({id: "startTime", title: WebInspector.UIString("Start Time"), width: "110px", fixedWidth: true, sortable: true});
+ var descriptors = [{id: "startTime", title: WebInspector.UIString("Start Time"), width: "110px", fixedWidth: true, sortable: true}];
+ columns.push(/** @type {!WebInspector.DataGrid.ColumnDescriptor} */(descriptors[0]));
WebInspector.TimelineTreeView.prototype._populateColumns.call(this, columns);
},

Powered by Google App Engine
This is Rietveld 408576698