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

Unified Diff: Source/devtools/front_end/ResourcesPanel.js

Issue 24109003: [DevTools] Resources panel SideBarTreeElement should show expand/collapse option only if it has chi… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Suggested fix. Created 7 years, 3 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 | « LayoutTests/http/tests/inspector/indexeddb/resources-panel.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/ResourcesPanel.js
diff --git a/Source/devtools/front_end/ResourcesPanel.js b/Source/devtools/front_end/ResourcesPanel.js
index 02522c4833450090f620856d379a03bdd9c05dc4..6084972c985a423c5d89191f11d2b5804da79e7d 100644
--- a/Source/devtools/front_end/ResourcesPanel.js
+++ b/Source/devtools/front_end/ResourcesPanel.js
@@ -141,6 +141,9 @@ WebInspector.ResourcesPanel.prototype = {
this._populateResourceTree();
this._populateDOMStorageTree();
this._populateApplicationCacheTree();
+ this.indexedDBListTreeElement._initialize();
+ if (WebInspector.experimentsSettings.fileSystemInspection.isEnabled())
+ this.fileSystemListTreeElement._initialize();
this._initDefaultSelection();
this._initialized = true;
}
@@ -1076,7 +1079,7 @@ WebInspector.BaseStorageTreeElement.prototype = {
*/
WebInspector.StorageCategoryTreeElement = function(storagePanel, categoryName, settingsKey, iconClasses, noIcon)
{
- WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, categoryName, iconClasses, true, noIcon);
+ WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, categoryName, iconClasses, false, noIcon);
this._expandedSettingKey = "resources" + settingsKey + "Expanded";
WebInspector.settings[this._expandedSettingKey] = WebInspector.settings.createSetting(this._expandedSettingKey, settingsKey === "Frames");
this._categoryName = categoryName;
@@ -1483,11 +1486,9 @@ WebInspector.IndexedDBTreeElement = function(storagePanel)
}
WebInspector.IndexedDBTreeElement.prototype = {
- onexpand: function()
+ _initialize: function()
{
- WebInspector.StorageCategoryTreeElement.prototype.onexpand.call(this);
- if (!this._indexedDBModel)
- this._createIndexedDBModel();
+ this._createIndexedDBModel();
},
onattach: function()
@@ -1598,9 +1599,8 @@ WebInspector.FileSystemListTreeElement = function(storagePanel)
}
WebInspector.FileSystemListTreeElement.prototype = {
- onexpand: function()
+ _initialize: function()
{
- WebInspector.StorageCategoryTreeElement.prototype.onexpand.call(this);
this._refreshFileSystem();
},
« no previous file with comments | « LayoutTests/http/tests/inspector/indexeddb/resources-panel.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698