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 eb1786b63107dcefab4264d1105af70b226fbcc7..5238d628789edd546965d9538cd23a3b0163da97 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js |
| @@ -110,7 +110,9 @@ WebInspector.NetworkLogView.Events = { |
| RequestSelected: Symbol("RequestSelected"), |
| SearchCountUpdated: Symbol("SearchCountUpdated"), |
| SearchIndexUpdated: Symbol("SearchIndexUpdated"), |
| - UpdateRequest: Symbol("UpdateRequest") |
| + UpdateRequest: Symbol("UpdateRequest"), |
| + RequestsSorted: Symbol("RequestsSorted"), |
|
dgozman
2016/10/10 23:30:18
I feel like this should be direct calls instead of
|
| + DataRefreshed: Symbol("DataRefreshed") |
| } |
| /** @enum {string} */ |
| @@ -671,6 +673,8 @@ WebInspector.NetworkLogView.prototype = { |
| this._staleRequestIds = {}; |
| this._updateSummaryBar(); |
| + |
| + this.dispatchEventToListeners(WebInspector.NetworkLogView.Events.DataRefreshed); |
| }, |
| reset: function() |
| @@ -1125,13 +1129,15 @@ WebInspector.NetworkLogView.prototype = { |
| return; |
| this._timelineColumnSortIcon.classList.remove("sort-ascending", "sort-descending"); |
| - if (this._dataGrid.sortColumnIdentifier() !== "timeline") |
| - return; |
| - if (this._dataGrid.sortOrder() === WebInspector.DataGrid.Order.Ascending) |
| - this._timelineColumnSortIcon.classList.add("sort-ascending"); |
| - else |
| - this._timelineColumnSortIcon.classList.add("sort-descending"); |
| + if (this._dataGrid.sortColumnIdentifier() === "timeline") { |
| + if (this._dataGrid.sortOrder() === WebInspector.DataGrid.Order.Ascending) |
| + this._timelineColumnSortIcon.classList.add("sort-ascending"); |
| + else |
| + this._timelineColumnSortIcon.classList.add("sort-descending"); |
| + } |
| + |
| + this.dispatchEventToListeners(WebInspector.NetworkLogView.Events.RequestsSorted); |
| }, |
| /** |