Chromium Code Reviews| 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 217e35127c0abc89b56963c37abe583de8d1bd17..3fedb552ff1ddc98940e4c090222fb61887ac36a 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js |
| @@ -1,6 +1,27 @@ |
| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| + |
| +/** |
| + * @unrestricted |
| + */ |
| +Resources.ServiceWorkerCategoryView = class extends UI.VBox { |
| + /** |
| + * @param {function()} refreshCaches |
| + */ |
| + constructor(refreshCaches) { |
| + super(); |
| + |
| + this._reportView = new UI.ReportView('Cache Storage'); |
|
dgozman
2017/06/02 18:36:52
Do we actually need a report view? Let's just add
|
| + this._reportView.show(this.contentElement); |
| + |
| + var footer = this._reportView.appendSection('').appendRow(); |
| + this._refreshButton = UI.createTextButton( |
| + Common.UIString('Refresh Caches'), () => refreshCaches(), Common.UIString('Refresh Caches')); |
| + footer.appendChild(this._refreshButton); |
| + } |
| +}; |
| + |
| /** |
| * @unrestricted |
| */ |