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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js

Issue 2623743002: DevTools: extract modules (non-extensions) (Closed)
Patch Set: rebaseline Created 3 years, 11 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/resources/ApplicationCacheItemsView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js
index fd1ddb40cc4fafacfc26da2f5597e9e9975a24ec..fffb78649f1ef5435e61106353dc324b8a097b13 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js
@@ -179,14 +179,14 @@ Resources.ApplicationCacheItemsView = class extends UI.SimpleView {
}
_createDataGrid() {
- var columns = /** @type {!Array<!UI.DataGrid.ColumnDescriptor>} */ ([
- {id: 'resource', title: Common.UIString('Resource'), sort: UI.DataGrid.Order.Ascending, sortable: true},
+ var columns = /** @type {!Array<!DataGrid.DataGrid.ColumnDescriptor>} */ ([
+ {id: 'resource', title: Common.UIString('Resource'), sort: DataGrid.DataGrid.Order.Ascending, sortable: true},
{id: 'type', title: Common.UIString('Type'), sortable: true},
- {id: 'size', title: Common.UIString('Size'), align: UI.DataGrid.Align.Right, sortable: true}
+ {id: 'size', title: Common.UIString('Size'), align: DataGrid.DataGrid.Align.Right, sortable: true}
]);
- this._dataGrid = new UI.DataGrid(columns);
+ this._dataGrid = new DataGrid.DataGrid(columns);
this._dataGrid.asWidget().show(this.element);
- this._dataGrid.addEventListener(UI.DataGrid.Events.SortingChanged, this._populateDataGrid, this);
+ this._dataGrid.addEventListener(DataGrid.DataGrid.Events.SortingChanged, this._populateDataGrid, this);
}
_populateDataGrid() {
@@ -225,7 +225,7 @@ Resources.ApplicationCacheItemsView = class extends UI.SimpleView {
data.resource = resource.url;
data.type = resource.type;
data.size = Number.bytesToString(resource.size);
- var node = new UI.DataGridNode(data);
+ var node = new DataGrid.DataGridNode(data);
node.resource = resource;
node.selectable = true;
this._dataGrid.rootNode().appendChild(node);

Powered by Google App Engine
This is Rietveld 408576698