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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.TimelineTreeView = function() 9 WebInspector.TimelineTreeView = function()
10 { 10 {
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 WebInspector.TimelineTreeView.GridNode.prototype = { 322 WebInspector.TimelineTreeView.GridNode.prototype = {
323 /** 323 /**
324 * @override 324 * @override
325 * @param {string} columnId 325 * @param {string} columnId
326 * @return {!Element} 326 * @return {!Element}
327 */ 327 */
328 createCell: function(columnId) 328 createCell: function(columnId)
329 { 329 {
330 if (columnId === "activity") 330 if (columnId === "activity")
331 return this._createNameCell(columnId); 331 return this._createNameCell(columnId);
332 return this._createValueCell(columnId) || WebInspector.DataGridNode.prot otype.createCell.call(this, columnId); 332 return this._createValueCell(columnId) || super.createCell(columnId);
333 }, 333 },
334 334
335 /** 335 /**
336 * @param {string} columnId 336 * @param {string} columnId
337 * @return {!Element} 337 * @return {!Element}
338 */ 338 */
339 _createNameCell: function(columnId) 339 _createNameCell: function(columnId)
340 { 340 {
341 var cell = this.createTD(columnId); 341 var cell = this.createTD(columnId);
342 var container = cell.createChild("div", "name-container"); 342 var container = cell.createChild("div", "name-container");
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 return selectedNode && /** @type {!WebInspector.TimelineTreeView.GridNod e} */ (selectedNode)._profileNode; 887 return selectedNode && /** @type {!WebInspector.TimelineTreeView.GridNod e} */ (selectedNode)._profileNode;
888 }, 888 },
889 889
890 _onSelectionChanged: function() 890 _onSelectionChanged: function()
891 { 891 {
892 this.dispatchEventToListeners(WebInspector.TimelineStackView.Events.Sele ctionChanged); 892 this.dispatchEventToListeners(WebInspector.TimelineStackView.Events.Sele ctionChanged);
893 }, 893 },
894 894
895 __proto__: WebInspector.VBox.prototype 895 __proto__: WebInspector.VBox.prototype
896 }; 896 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698