Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| index 64c699010a1d2e3797b9893b9eafcc8fd35cf388..dca6ce048e710d3e1dbfac94653f090bd8e1b476 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| @@ -86,6 +86,7 @@ Network.NetworkLogView = class extends UI.VBox { |
| this._filters = []; |
| /** @type {?Network.NetworkLogView.Filter} */ |
| this._timeFilter = null; |
| + this._hoveredNode = null; |
| this._currentMatchedRequestNode = null; |
| this._currentMatchedRequestIndex = -1; |
| @@ -531,12 +532,13 @@ Network.NetworkLogView = class extends UI.VBox { |
| } |
| /** |
| - * @param {?SDK.NetworkRequest} request |
| + * @param {?Network.LogEntry} logEntry |
| * @param {boolean} highlightInitiatorChain |
| */ |
| - setHoveredRequest(request, highlightInitiatorChain) { |
| - this._setHoveredNode(request ? this._nodesByRequestId.get(request.requestId) : null, highlightInitiatorChain); |
| - this._highlightInitiatorChain((request && highlightInitiatorChain) ? request : null); |
| + setHoveredLogEntry(logEntry, highlightInitiatorChain) { |
| + // TODO(allada) Move this into LogEntry/NetworkDataGridNode. |
| + this._setHoveredNode(/** @type {?Network.NetworkDataGridNode} */ (logEntry), highlightInitiatorChain); |
| + this._highlightInitiatorChain((logEntry && highlightInitiatorChain) ? logEntry.request() : null); |
| } |
| /** |
| @@ -549,7 +551,7 @@ Network.NetworkLogView = class extends UI.VBox { |
| this._hoveredNode = node; |
| if (this._hoveredNode) |
| this._hoveredNode.element().classList.add('hover'); |
| - this._columns.setHoveredRequest(this._hoveredNode ? this._hoveredNode.request() : null, !!highlightInitiatorChain); |
| + this._columns.setHoveredLogEntry(this._hoveredNode, !!highlightInitiatorChain); |
| } |
| /** |
| @@ -778,6 +780,13 @@ Network.NetworkLogView = class extends UI.VBox { |
| this._columns.willHide(); |
| } |
| + /** |
| + * @return {!Network.LogEntry} |
|
dgozman
2016/11/21 23:31:27
Incorrect annotation.
allada
2016/11/22 00:00:21
Done.
|
| + */ |
| + nodesList() { |
|
dgozman
2016/11/21 23:31:27
flatNodesList to have the same name everywhere?
allada
2016/11/22 00:00:21
Done.
|
| + return this._dataGrid.flatNodesList(); |
| + } |
| + |
| _refresh() { |
| this._needsRefresh = false; |