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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js

Issue 2314173003: Timeline: make prepareHighlightedEntryInfo return ?Promise<!Element> (Closed)
Patch Set: Timeline: make prepareHighlightEntryInfo return ?Element Created 4 years, 3 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @implements {WebInspector.Searchable} 7 * @implements {WebInspector.Searchable}
8 * @extends {WebInspector.SimpleView} 8 * @extends {WebInspector.SimpleView}
9 * @param {!WebInspector.ProfileDataGridNode.Formatter} nodeFormatter 9 * @param {!WebInspector.ProfileDataGridNode.Formatter} nodeFormatter
10 * @param {!Array<string>=} viewTypes 10 * @param {!Array<string>=} viewTypes
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 this._flameChart.update(); 65 this._flameChart.update();
66 } 66 }
67 67
68 /** @enum {string} */ 68 /** @enum {string} */
69 WebInspector.ProfileView.ViewTypes = { 69 WebInspector.ProfileView.ViewTypes = {
70 Flame: "Flame", 70 Flame: "Flame",
71 Tree: "Tree", 71 Tree: "Tree",
72 Heavy: "Heavy" 72 Heavy: "Heavy"
73 } 73 }
74 74
75 /**
76 * @param {!Array<!{title: string, value: string}>} entryInfo
77 * @return {!Element}
78 */
79 WebInspector.ProfileView.buildPopoverTable = function(entryInfo)
80 {
81 var table = createElement("table");
82 for (var entry of entryInfo) {
83 var row = table.createChild("tr");
84 row.createChild("td").textContent = entry.title;
85 row.createChild("td").textContent = entry.value;
86 }
87 return table;
88 }
89
75 WebInspector.ProfileView.prototype = { 90 WebInspector.ProfileView.prototype = {
76 focus: function() 91 focus: function()
77 { 92 {
78 if (this._flameChart) 93 if (this._flameChart)
79 this._flameChart.focus(); 94 this._flameChart.focus();
80 else 95 else
81 WebInspector.Widget.prototype.focus.call(this); 96 WebInspector.Widget.prototype.focus.call(this);
82 }, 97 },
83 98
84 /** 99 /**
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 _notifyTempFileReady: function() 599 _notifyTempFileReady: function()
585 { 600 {
586 if (this._onTempFileReady) { 601 if (this._onTempFileReady) {
587 this._onTempFileReady(); 602 this._onTempFileReady();
588 this._onTempFileReady = null; 603 this._onTempFileReady = null;
589 } 604 }
590 }, 605 },
591 606
592 __proto__: WebInspector.ProfileHeader.prototype 607 __proto__: WebInspector.ProfileHeader.prototype
593 } 608 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698