| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.SimpleView} | 7 * @extends {WebInspector.SimpleView} |
| 8 * @param {!WebInspector.ServiceWorkerCacheModel} model | 8 * @param {!WebInspector.ServiceWorkerCacheModel} model |
| 9 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache | 9 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache |
| 10 */ | 10 */ |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 { | 68 { |
| 69 this._skipCount = this._skipCount + this._pageSize; | 69 this._skipCount = this._skipCount + this._pageSize; |
| 70 this._updateData(false); | 70 this._updateData(false); |
| 71 }, | 71 }, |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * @param {!WebInspector.DataGridNode} node | 74 * @param {!WebInspector.DataGridNode} node |
| 75 */ | 75 */ |
| 76 _deleteButtonClicked: function(node) | 76 _deleteButtonClicked: function(node) |
| 77 { | 77 { |
| 78 this._model.deleteCacheEntry(this._cache, node.data["request"], node.rem
ove.bind(node)); | 78 this._model.deleteCacheEntry(this._cache, /** @type {string} */ (node.da
ta["request"]), node.remove.bind(node)); |
| 79 }, | 79 }, |
| 80 | 80 |
| 81 /** | 81 /** |
| 82 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache | 82 * @param {!WebInspector.ServiceWorkerCacheModel.Cache} cache |
| 83 */ | 83 */ |
| 84 update: function(cache) | 84 update: function(cache) |
| 85 { | 85 { |
| 86 this._cache = cache; | 86 this._cache = cache; |
| 87 | 87 |
| 88 if (this._dataGrid) | 88 if (this._dataGrid) |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 }, | 153 }, |
| 154 | 154 |
| 155 clear: function() | 155 clear: function() |
| 156 { | 156 { |
| 157 this._dataGrid.rootNode().removeChildren(); | 157 this._dataGrid.rootNode().removeChildren(); |
| 158 this._entries = []; | 158 this._entries = []; |
| 159 }, | 159 }, |
| 160 | 160 |
| 161 __proto__: WebInspector.SimpleView.prototype | 161 __proto__: WebInspector.SimpleView.prototype |
| 162 }; | 162 }; |
| OLD | NEW |