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

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

Issue 2902673003: Added a refresh database button on the IndexedDB view. (Closed)
Patch Set: Changed to use refreshDatabase() function instead of event listener, created database structure in … 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 eb45a9498ee74c960806e670e1cb677b99528fbe..169214475121fd67544ca5f2598ba83df8cf6f33 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js
@@ -53,6 +53,11 @@ Resources.IDBDatabaseView = class extends UI.VBox {
Common.UIString('Delete database'), () => this._deleteDatabase(), Common.UIString('Delete database'));
footer.appendChild(this._clearButton);
+ this._refreshButton = UI.createTextButton(
+ Common.UIString('Refresh database'), () => this._refreshDatabaseButtonClicked(),
+ Common.UIString('Refresh database'));
+ footer.appendChild(this._refreshButton);
+
this.update(database);
}
@@ -61,6 +66,11 @@ Resources.IDBDatabaseView = class extends UI.VBox {
this._versionElement.textContent = this._database.version;
}
+ _refreshDatabaseButtonClicked() {
+ this._model.refreshDatabase(this._database.databaseId);
+ this._refreshDatabase();
dgozman 2017/05/26 19:10:46 I think there is no need to call this, since model
kristipark 2017/05/26 22:42:16 Done.
+ }
+
/**
* @param {!Resources.IndexedDBModel.Database} database
*/

Powered by Google App Engine
This is Rietveld 408576698