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

Unified Diff: Source/devtools/front_end/network/NetworkPanel.js

Issue 411263003: DevTools: Extract SortableDataGrid. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/devtools/front_end/inspector.html ('k') | Source/devtools/front_end/resources/DatabaseQueryView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/network/NetworkPanel.js
diff --git a/Source/devtools/front_end/network/NetworkPanel.js b/Source/devtools/front_end/network/NetworkPanel.js
index 574d4fe7d881a30e48fcef8af60c2fe4b71ce4aa..f09e899c2783416c020b8356123dc94347c4cdbd 100644
--- a/Source/devtools/front_end/network/NetworkPanel.js
+++ b/Source/devtools/front_end/network/NetworkPanel.js
@@ -361,7 +361,7 @@ WebInspector.NetworkLogView.prototype = {
sort: WebInspector.DataGrid.Order.Ascending
});
- this._dataGrid = new WebInspector.DataGrid(columns);
+ this._dataGrid = new WebInspector.SortableDataGrid(columns);
this._updateColumns();
this._dataGrid.setName("networkLog");
this._dataGrid.setResizeMethod(WebInspector.DataGrid.ResizeMethod.Last);
@@ -2478,13 +2478,13 @@ WebInspector.NetworkTransferDurationCalculator.prototype = {
/**
* @constructor
- * @extends {WebInspector.DataGridNode}
+ * @extends {WebInspector.SortableDataGridNode}
* @param {!WebInspector.NetworkLogView} parentView
* @param {!WebInspector.NetworkRequest} request
*/
WebInspector.NetworkDataGridNode = function(parentView, request)
{
- WebInspector.DataGridNode.call(this, {});
+ WebInspector.SortableDataGridNode.call(this, {});
this._parentView = parentView;
this._request = request;
this._linkifier = new WebInspector.Linkifier();
@@ -2508,7 +2508,7 @@ WebInspector.NetworkDataGridNode.prototype = {
element.classList.add(typeClassName);
}
- WebInspector.DataGridNode.prototype.createCells.call(this);
+ WebInspector.SortableDataGridNode.prototype.createCells.call(this);
this.refreshGraph(this._parentView.calculator);
},
@@ -2570,7 +2570,7 @@ WebInspector.NetworkDataGridNode.prototype = {
select: function()
{
this._parentView.dispatchEventToListeners(WebInspector.NetworkLogView.EventTypes.RequestSelected, this._request);
- WebInspector.DataGridNode.prototype.select.apply(this, arguments);
+ WebInspector.SortableDataGridNode.prototype.select.apply(this, arguments);
WebInspector.notifications.dispatchEventToListeners(WebInspector.UserMetrics.UserAction, {
action: WebInspector.UserMetrics.UserActionNames.NetworkRequestSelected,
@@ -2897,7 +2897,7 @@ WebInspector.NetworkDataGridNode.prototype = {
}
},
- __proto__: WebInspector.DataGridNode.prototype
+ __proto__: WebInspector.SortableDataGridNode.prototype
}
/**
« no previous file with comments | « Source/devtools/front_end/inspector.html ('k') | Source/devtools/front_end/resources/DatabaseQueryView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698