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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 b71a3b4dd6fdd7ad2b487843d78cdba2e8721f98..0e2db5ecc2e5dbb5715c526e68bba83eecf425cc 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js
@@ -26,15 +26,15 @@
/**
* @unrestricted
*/
-WebInspector.ApplicationCacheItemsView = class extends WebInspector.SimpleView {
+Resources.ApplicationCacheItemsView = class extends UI.SimpleView {
constructor(model, frameId) {
- super(WebInspector.UIString('AppCache'));
+ super(Common.UIString('AppCache'));
this._model = model;
this.element.classList.add('storage-view', 'table');
- this._deleteButton = new WebInspector.ToolbarButton(WebInspector.UIString('Delete'), 'largeicon-delete');
+ this._deleteButton = new UI.ToolbarButton(Common.UIString('Delete'), 'largeicon-delete');
this._deleteButton.setVisible(false);
this._deleteButton.addEventListener('click', this._deleteButtonClicked, this);
@@ -46,7 +46,7 @@ WebInspector.ApplicationCacheItemsView = class extends WebInspector.SimpleView {
this._frameId = frameId;
this._emptyWidget =
- new WebInspector.EmptyWidget(WebInspector.UIString('No Application Cache information available.'));
+ new UI.EmptyWidget(Common.UIString('No Application Cache information available.'));
this._emptyWidget.show(this.element);
this._markDirty();
@@ -62,12 +62,12 @@ WebInspector.ApplicationCacheItemsView = class extends WebInspector.SimpleView {
/**
* @override
- * @return {!Array.<!WebInspector.ToolbarItem>}
+ * @return {!Array.<!UI.ToolbarItem>}
*/
syncToolbarItems() {
return [
- this._deleteButton, new WebInspector.ToolbarItem(this._connectivityIcon), new WebInspector.ToolbarSeparator(),
- new WebInspector.ToolbarItem(this._statusIcon)
+ this._deleteButton, new UI.ToolbarItem(this._connectivityIcon), new UI.ToolbarSeparator(),
+ new UI.ToolbarItem(this._statusIcon)
];
}
@@ -130,10 +130,10 @@ WebInspector.ApplicationCacheItemsView = class extends WebInspector.SimpleView {
updateNetworkState(isNowOnline) {
if (isNowOnline) {
this._connectivityIcon.type = 'smallicon-green-ball';
- this._connectivityIcon.textContent = WebInspector.UIString('Online');
+ this._connectivityIcon.textContent = Common.UIString('Online');
} else {
this._connectivityIcon.type = 'smallicon-red-ball';
- this._connectivityIcon.textContent = WebInspector.UIString('Offline');
+ this._connectivityIcon.textContent = Common.UIString('Offline');
}
}
@@ -176,23 +176,23 @@ WebInspector.ApplicationCacheItemsView = class extends WebInspector.SimpleView {
// FIXME: For Chrome, put creationTime and updateTime somewhere.
// NOTE: localizedString has not yet been added.
- // WebInspector.UIString("(%s) Created: %s Updated: %s", this._size, this._creationTime, this._updateTime);
+ // Common.UIString("(%s) Created: %s Updated: %s", this._size, this._creationTime, this._updateTime);
}
_createDataGrid() {
- var columns = /** @type {!Array<!WebInspector.DataGrid.ColumnDescriptor>} */ ([
+ var columns = /** @type {!Array<!UI.DataGrid.ColumnDescriptor>} */ ([
{
id: 'resource',
- title: WebInspector.UIString('Resource'),
- sort: WebInspector.DataGrid.Order.Ascending,
+ title: Common.UIString('Resource'),
+ sort: UI.DataGrid.Order.Ascending,
sortable: true
},
- {id: 'type', title: WebInspector.UIString('Type'), sortable: true},
- {id: 'size', title: WebInspector.UIString('Size'), align: WebInspector.DataGrid.Align.Right, sortable: true}
+ {id: 'type', title: Common.UIString('Type'), sortable: true},
+ {id: 'size', title: Common.UIString('Size'), align: UI.DataGrid.Align.Right, sortable: true}
]);
- this._dataGrid = new WebInspector.DataGrid(columns);
+ this._dataGrid = new UI.DataGrid(columns);
this._dataGrid.asWidget().show(this.element);
- this._dataGrid.addEventListener(WebInspector.DataGrid.Events.SortingChanged, this._populateDataGrid, this);
+ this._dataGrid.addEventListener(UI.DataGrid.Events.SortingChanged, this._populateDataGrid, this);
}
_populateDataGrid() {
@@ -231,7 +231,7 @@ WebInspector.ApplicationCacheItemsView = class extends WebInspector.SimpleView {
data.resource = resource.url;
data.type = resource.type;
data.size = Number.bytesToString(resource.size);
- var node = new WebInspector.DataGridNode(data);
+ var node = new UI.DataGridNode(data);
node.resource = resource;
node.selectable = true;
this._dataGrid.rootNode().appendChild(node);

Powered by Google App Engine
This is Rietveld 408576698