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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.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/IndexedDBViews.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js b/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js
index a421227f6948604a8c6629d045db4d983e8d2fbe..2bbbe9cb5073d5573f760e607d9ae82c64f8a521 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js
@@ -28,6 +28,26 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+/**
+ * @unrestricted
dgozman 2017/06/02 18:36:52 No need for unrestricted.
+ */
+Resources.IDBCategoryView = class extends UI.VBox {
+ /**
+ * @param {function()} refreshIndexedDB
+ */
+ constructor(refreshIndexedDB) {
+ super();
+
+ this._reportView = new UI.ReportView('IndexedDB');
dgozman 2017/06/02 18:36:52 You can just use |var reportView| and not save to
+ this._reportView.show(this.contentElement);
+
+ var footer = this._reportView.appendSection('').appendRow();
+ this._refreshButton = UI.createTextButton(
+ Common.UIString('Refresh IndexedDB'), () => refreshIndexedDB(), Common.UIString('Refresh IndexedDB'));
+ footer.appendChild(this._refreshButton);
+ }
+};
+
/**
* @unrestricted
*/

Powered by Google App Engine
This is Rietveld 408576698