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

Unified Diff: Source/devtools/front_end/resources/DirectoryContentView.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/resources/DatabaseTableView.js ('k') | Source/devtools/front_end/ui/DataGrid.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/resources/DirectoryContentView.js
diff --git a/Source/devtools/front_end/resources/DirectoryContentView.js b/Source/devtools/front_end/resources/DirectoryContentView.js
index 33dec38c5ae2c6723a845e691bc0499f313a4066..d1ba80bcf7a4b85f7d3b1967a0710799414c7feb 100644
--- a/Source/devtools/front_end/resources/DirectoryContentView.js
+++ b/Source/devtools/front_end/resources/DirectoryContentView.js
@@ -30,7 +30,7 @@
/**
* @constructor
- * @extends {WebInspector.DataGrid}
+ * @extends {WebInspector.SortableDataGrid}
*/
WebInspector.DirectoryContentView = function()
{
@@ -43,7 +43,7 @@ WebInspector.DirectoryContentView = function()
{id: indexes.ModificationTime, title: WebInspector.UIString("Modification Time"), sortable: true, width: "25%"}
];
- WebInspector.DataGrid.call(this, columns);
+ WebInspector.SortableDataGrid.call(this, columns);
this.addEventListener(WebInspector.DataGrid.Events.SortingChanged, this._sort, this);
}
@@ -75,12 +75,12 @@ WebInspector.DirectoryContentView.prototype = {
this.sortNodes(WebInspector.DirectoryContentView.Node.comparator(column), !this.isSortOrderAscending());
},
- __proto__: WebInspector.DataGrid.prototype
+ __proto__: WebInspector.SortableDataGrid.prototype
}
/**
* @constructor
- * @extends {WebInspector.DataGridNode}
+ * @extends {WebInspector.SortableDataGridNode}
* @param {!WebInspector.FileSystemModel.Entry} entry
*/
WebInspector.DirectoryContentView.Node = function(entry)
@@ -93,7 +93,7 @@ WebInspector.DirectoryContentView.Node = function(entry)
data[indexes.Size] = "";
data[indexes.ModificationTime] = "";
- WebInspector.DataGridNode.call(this, data);
+ WebInspector.SortableDataGridNode.call(this, data);
this._entry = entry;
this._metadata = null;
@@ -131,7 +131,7 @@ WebInspector.DirectoryContentView.Node.comparator = function(column)
return isDirectoryCompare(x, y) || modificationTimeCompare(x, y) || nameCompare(x, y);
};
default:
- return WebInspector.DataGrid.TrivialComparator;
+ return WebInspector.SortableDataGrid.TrivialComparator;
}
function isDirectoryCompare(x, y)
@@ -183,5 +183,5 @@ WebInspector.DirectoryContentView.Node.prototype = {
this.data = data;
},
- __proto__: WebInspector.DataGridNode.prototype
+ __proto__: WebInspector.SortableDataGridNode.prototype
}
« no previous file with comments | « Source/devtools/front_end/resources/DatabaseTableView.js ('k') | Source/devtools/front_end/ui/DataGrid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698