| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 * @implements {WebInspector.TargetManager.Observer} | 8 * @implements {WebInspector.TargetManager.Observer} |
| 9 * @param {!WebInspector.ResourcesPanel} resourcesPanel | 9 * @param {!WebInspector.ResourcesPanel} resourcesPanel |
| 10 */ | 10 */ |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 } | 137 } |
| 138 } | 138 } |
| 139 | 139 |
| 140 if (set.has(StorageAgent.StorageType.Appcache) || hasAll) { | 140 if (set.has(StorageAgent.StorageType.Appcache) || hasAll) { |
| 141 var appcacheModel = WebInspector.ApplicationCacheModel.fromTarget(th
is._target); | 141 var appcacheModel = WebInspector.ApplicationCacheModel.fromTarget(th
is._target); |
| 142 if (appcacheModel) | 142 if (appcacheModel) |
| 143 appcacheModel.reset(); | 143 appcacheModel.reset(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 this._clearButton.disabled = true; | 146 this._clearButton.disabled = true; |
| 147 this._clearButton.textContent = WebInspector.UIString("Clearing..."); |
| 147 setTimeout(() => { | 148 setTimeout(() => { |
| 148 this._clearButton.disabled = false; | 149 this._clearButton.disabled = false; |
| 150 this._clearButton.textContent = WebInspector.UIString("Clear selecte
d"); |
| 149 }, 500); | 151 }, 500); |
| 150 }, | 152 }, |
| 151 | 153 |
| 152 /** | 154 /** |
| 153 * @override | 155 * @override |
| 154 * @param {!WebInspector.Target} target | 156 * @param {!WebInspector.Target} target |
| 155 */ | 157 */ |
| 156 targetRemoved: function(target) | 158 targetRemoved: function(target) |
| 157 { | 159 { |
| 158 }, | 160 }, |
| 159 | 161 |
| 160 __proto__: WebInspector.VBox.prototype | 162 __proto__: WebInspector.VBox.prototype |
| 161 } | 163 } |
| OLD | NEW |