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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkerCacheViews.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/ServiceWorkerCacheViews.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js b/third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js
index 40124cf3271548ba6b9125039a92c2097efeb11e..a1dbdbdd69bc821e68f5508e06b8c6de7b067882 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js
@@ -31,14 +31,15 @@ Resources.ServiceWorkerCacheView = class extends UI.SimpleView {
}
/**
- * @return {!UI.DataGrid}
+ * @return {!DataGrid.DataGrid}
*/
_createDataGrid() {
- var columns = /** @type {!Array<!UI.DataGrid.ColumnDescriptor>} */ ([
+ var columns = /** @type {!Array<!DataGrid.DataGrid.ColumnDescriptor>} */ ([
{id: 'number', title: Common.UIString('#'), width: '50px'}, {id: 'request', title: Common.UIString('Request')},
{id: 'response', title: Common.UIString('Response')}
]);
- return new UI.DataGrid(columns, undefined, this._deleteButtonClicked.bind(this), this._updateData.bind(this, true));
+ return new DataGrid.DataGrid(
+ columns, undefined, this._deleteButtonClicked.bind(this), this._updateData.bind(this, true));
}
_createEditorToolbar() {
@@ -71,7 +72,7 @@ Resources.ServiceWorkerCacheView = class extends UI.SimpleView {
}
/**
- * @param {!UI.DataGridNode} node
+ * @param {!DataGrid.DataGridNode} node
*/
_deleteButtonClicked(node) {
this._model.deleteCacheEntry(this._cache, /** @type {string} */ (node.data['request']), node.remove.bind(node));
@@ -106,7 +107,7 @@ Resources.ServiceWorkerCacheView = class extends UI.SimpleView {
data['number'] = i + skipCount;
data['request'] = entries[i].request;
data['response'] = entries[i].response;
- var node = new UI.DataGridNode(data);
+ var node = new DataGrid.DataGridNode(data);
node.selectable = true;
this._dataGrid.rootNode().appendChild(node);
}

Powered by Google App Engine
This is Rietveld 408576698