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

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

Issue 2536723003: [Devtools] Removed DataGrid's hasChildren getter/setter to use functions (Closed)
Patch Set: Created 4 years 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 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 Timeline.TimelineTreeView = class extends UI.VBox { 7 Timeline.TimelineTreeView = class extends UI.VBox {
8 constructor() { 8 constructor() {
9 super(); 9 super();
10 this.element.classList.add('timeline-tree-view'); 10 this.element.classList.add('timeline-tree-view');
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 Timeline.TimelineTreeView.TreeGridNode = class extends Timeline.TimelineTreeView .GridNode { 415 Timeline.TimelineTreeView.TreeGridNode = class extends Timeline.TimelineTreeView .GridNode {
416 /** 416 /**
417 * @param {!TimelineModel.TimelineProfileTree.Node} profileNode 417 * @param {!TimelineModel.TimelineProfileTree.Node} profileNode
418 * @param {number} grandTotalTime 418 * @param {number} grandTotalTime
419 * @param {number} maxSelfTime 419 * @param {number} maxSelfTime
420 * @param {number} maxTotalTime 420 * @param {number} maxTotalTime
421 * @param {!Timeline.TimelineTreeView} treeView 421 * @param {!Timeline.TimelineTreeView} treeView
422 */ 422 */
423 constructor(profileNode, grandTotalTime, maxSelfTime, maxTotalTime, treeView) { 423 constructor(profileNode, grandTotalTime, maxSelfTime, maxTotalTime, treeView) {
424 super(profileNode, grandTotalTime, maxSelfTime, maxTotalTime, treeView); 424 super(profileNode, grandTotalTime, maxSelfTime, maxTotalTime, treeView);
425 this.hasChildren = this._profileNode.children ? this._profileNode.children.s ize > 0 : false; 425 this.setHasChildren(this._profileNode.children ? this._profileNode.children. size > 0 : false);
426 profileNode[Timeline.TimelineTreeView.TreeGridNode._gridNodeSymbol] = this; 426 profileNode[Timeline.TimelineTreeView.TreeGridNode._gridNodeSymbol] = this;
427 } 427 }
428 428
429 /** 429 /**
430 * @override 430 * @override
431 */ 431 */
432 populate() { 432 populate() {
433 if (this._populated) 433 if (this._populated)
434 return; 434 return;
435 this._populated = true; 435 this._populated = true;
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 938
939 _onSelectionChanged() { 939 _onSelectionChanged() {
940 this.dispatchEventToListeners(Timeline.TimelineStackView.Events.SelectionCha nged); 940 this.dispatchEventToListeners(Timeline.TimelineStackView.Events.SelectionCha nged);
941 } 941 }
942 }; 942 };
943 943
944 /** @enum {symbol} */ 944 /** @enum {symbol} */
945 Timeline.TimelineStackView.Events = { 945 Timeline.TimelineStackView.Events = {
946 SelectionChanged: Symbol('SelectionChanged') 946 SelectionChanged: Symbol('SelectionChanged')
947 }; 947 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698