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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
index ba20135d5767685b563dc6787213a96a2889d0c4..3976560684b8900987647b6d2e934ef3948b5308 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileView.js
@@ -72,6 +72,21 @@ WebInspector.ProfileView.ViewTypes = {
Heavy: "Heavy"
}
+/**
+ * @param {!Array<!{title: string, value: string}>} entryInfo
+ * @return {!Element}
+ */
+WebInspector.ProfileView.buildPopoverTable = function(entryInfo)
+{
+ var table = createElement("table");
+ for (var entry of entryInfo) {
+ var row = table.createChild("tr");
+ row.createChild("td").textContent = entry.title;
+ row.createChild("td").textContent = entry.value;
+ }
+ return table;
+}
+
WebInspector.ProfileView.prototype = {
focus: function()
{

Powered by Google App Engine
This is Rietveld 408576698