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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkTimelineColumn.js

Issue 2411533002: [Devtools] Added data to networking timeline canvas experiment (Closed)
Patch Set: Created 4 years, 2 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/network/NetworkTimelineColumn.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkTimelineColumn.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkTimelineColumn.js
index 2bd1c76259bac2184824aa1f1eb9b0782475dcac..09f7fd3bc93da5ebf9feacde9dd19d8bc02ce3b5 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkTimelineColumn.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkTimelineColumn.js
@@ -22,11 +22,26 @@ WebInspector.NetworkTimelineColumn = function(networkLogView, dataGrid)
this._dataGrid = dataGrid;
this._networkLogView = networkLogView;
+
+ this._networkLogView.addEventListener(WebInspector.NetworkLogView.Events.RequestsSorted, this._onRefreshData, this);
+ this._networkLogView.addEventListener(WebInspector.NetworkLogView.Events.DataRefreshed, this._onRefreshData, this);
+
/** @type {!Array<!WebInspector.NetworkRequest>} */
this._requestData = [];
+ this._onRefreshData();
}
WebInspector.NetworkTimelineColumn.prototype = {
+ _onRefreshData: function()
+ {
+ var currentNode = this._dataGrid.rootNode();
+ this._requestData = [];
+ while (currentNode = currentNode.traverseNextNode(true))
+ this._requestData.push(currentNode.request());
+
+ this.scheduleUpdate();
+ },
+
scheduleUpdate: function()
{
if (this._updateRequestID)

Powered by Google App Engine
This is Rietveld 408576698