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

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

Issue 2793203002: [DevTools] Pass sidebar and not the panel. (Closed)
Patch Set: [DevTools] Pass sidebar and not the panel. Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
index 8c8805afa877403023ce4b007fb9029c61cdd243..2c738b0a25d95bfe12ef4fef0148dafb8aa51d7d 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationPanelSidebar.js
@@ -736,7 +736,7 @@ Resources.DatabaseTreeElement = class extends Resources.BaseStorageTreeElement {
function tableNamesCallback(tableNames) {
var tableNamesLength = tableNames.length;
for (var i = 0; i < tableNamesLength; ++i)
- this.appendChild(new Resources.DatabaseTableTreeElement(this._storagePanel, this._database, tableNames[i]));
+ this.appendChild(new Resources.DatabaseTableTreeElement(this._sidebar, this._database, tableNames[i]));
}
this._database.getTableNames(tableNamesCallback.bind(this));
}
@@ -746,6 +746,11 @@ Resources.DatabaseTreeElement = class extends Resources.BaseStorageTreeElement {
* @unrestricted
*/
Resources.DatabaseTableTreeElement = class extends Resources.BaseStorageTreeElement {
+ /**
+ * @param {!Resources.ApplicationPanelSidebar} sidebar
+ * @param {!Resources.Database} database
+ * @param {string} tableName
+ */
constructor(sidebar, database, tableName) {
super(sidebar._panel, tableName, false);
this._sidebar = sidebar;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698