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 28 matching lines...) Expand all Loading... |
39 this._appendItem(storage, WebInspector.UIString("Cookies"), "cookies"); | 39 this._appendItem(storage, WebInspector.UIString("Cookies"), "cookies"); |
40 | 40 |
41 var caches = this._reportView.appendSection(WebInspector.UIString("Cache")); | 41 var caches = this._reportView.appendSection(WebInspector.UIString("Cache")); |
42 this._appendItem(caches, WebInspector.UIString("Cache storage"), "cache_stor
age"); | 42 this._appendItem(caches, WebInspector.UIString("Cache storage"), "cache_stor
age"); |
43 this._appendItem(caches, WebInspector.UIString("Application cache"), "appcac
he"); | 43 this._appendItem(caches, WebInspector.UIString("Application cache"), "appcac
he"); |
44 | 44 |
45 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capabili
ty.Browser); | 45 WebInspector.targetManager.observeTargets(this, WebInspector.Target.Capabili
ty.Browser); |
46 var footer = this._reportView.appendSection("", "clear-storage-button").appe
ndRow(); | 46 var footer = this._reportView.appendSection("", "clear-storage-button").appe
ndRow(); |
47 this._clearButton = createTextButton(WebInspector.UIString("Clear site data"
), this._clear.bind(this), WebInspector.UIString("Clear site data")); | 47 this._clearButton = createTextButton(WebInspector.UIString("Clear site data"
), this._clear.bind(this), WebInspector.UIString("Clear site data")); |
48 footer.appendChild(this._clearButton); | 48 footer.appendChild(this._clearButton); |
49 } | 49 }; |
50 | 50 |
51 WebInspector.ClearStorageView.prototype = { | 51 WebInspector.ClearStorageView.prototype = { |
52 | 52 |
53 /** | 53 /** |
54 * @param {!WebInspector.ReportView.Section} section | 54 * @param {!WebInspector.ReportView.Section} section |
55 * @param {string} title | 55 * @param {string} title |
56 * @param {string} settingName | 56 * @param {string} settingName |
57 */ | 57 */ |
58 _appendItem: function(section, title, settingName) | 58 _appendItem: function(section, title, settingName) |
59 { | 59 { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 this._clearButton.disabled = true; | 158 this._clearButton.disabled = true; |
159 this._clearButton.textContent = WebInspector.UIString("Clearing..."); | 159 this._clearButton.textContent = WebInspector.UIString("Clearing..."); |
160 setTimeout(() => { | 160 setTimeout(() => { |
161 this._clearButton.disabled = false; | 161 this._clearButton.disabled = false; |
162 this._clearButton.textContent = WebInspector.UIString("Clear selecte
d"); | 162 this._clearButton.textContent = WebInspector.UIString("Clear selecte
d"); |
163 }, 500); | 163 }, 500); |
164 }, | 164 }, |
165 | 165 |
166 __proto__: WebInspector.VBox.prototype | 166 __proto__: WebInspector.VBox.prototype |
167 } | 167 }; |
OLD | NEW |