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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/ServiceWorkerCacheViews.js

Issue 2916193003: [CacheStorage] [IndexedDB] [DevTools] Added refresh button to category view of cache storage and in… (Closed)
Patch Set: Created 3 years, 7 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 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
*/

Powered by Google App Engine
This is Rietveld 408576698