Commit 6bdb9f48 authored by pfeldman's avatar pfeldman Committed by Commit Bot

Revert of [CacheStorage] [IndexedDB] [DevTools] Added refresh button to...

Revert of [CacheStorage] [IndexedDB] [DevTools] Added refresh button to category view of cache storage and in… (patchset #2 id:20001 of https://codereview.chromium.org/2916193003/ )

Reason for revert:
The UI does not look right.

Original issue's description:
> Added refresh button to category view of cache storage and indexeddb
>
> BUG=727920, 727897
>
> Review-Url: https://codereview.chromium.org/2916193003
> Cr-Commit-Position: refs/heads/master@{#478099}
> Committed: https://chromium.googlesource.com/chromium/src/+/423c0eff455de15f2e3f0cc6c54002fa9b7db5a6

TBR=dmurph@chromium.org,dgozman@chromium.org,eostroukhov@chromium.org,kristipark@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=727920, 727897

Review-Url: https://codereview.chromium.org/2973113002
Cr-Commit-Position: refs/heads/master@{#485447}
parent efcd3a7e
......@@ -57,7 +57,6 @@ Resources.ApplicationPanelSidebar = class extends UI.VBox {
this._applicationTreeElement.appendChild(clearStorageTreeElement);
var storageTreeElement = this._addSidebarSection(Common.UIString('Storage'));
this._addRefreshSectionButton(storageTreeElement, this._refreshStorageSection.bind(this));
this.localStorageListTreeElement =
new Resources.StorageCategoryTreeElement(panel, Common.UIString('Local Storage'), 'LocalStorage');
var localStorageIcon = UI.Icon.create('mediumicon-table', 'resource-tree-item');
......@@ -84,7 +83,6 @@ Resources.ApplicationPanelSidebar = class extends UI.VBox {
storageTreeElement.appendChild(this.cookieListTreeElement);
var cacheTreeElement = this._addSidebarSection(Common.UIString('Cache'));
this._addRefreshSectionButton(cacheTreeElement, this._refreshCacheSection.bind(this));
this.cacheStorageListTreeElement = new Resources.ServiceWorkerCacheTreeElement(panel);
cacheTreeElement.appendChild(this.cacheStorageListTreeElement);
this.applicationCacheListTreeElement =
......@@ -132,32 +130,6 @@ Resources.ApplicationPanelSidebar = class extends UI.VBox {
return treeElement;
}
/**
* @param {!UI.TreeElement} treeElement
* @param {function()} refresh
*/
_addRefreshSectionButton(treeElement, refresh) {
var refreshIcon = UI.Icon.create('largeicon-refresh', 'sidebar-section-button');
refreshIcon.addEventListener('click', refresh, false);
treeElement.setTrailingIcons([refreshIcon]);
}
_refreshStorageSection() {
var visibleView = this._panel.visibleView;
if (visibleView instanceof Resources.DOMStorageItemsView || visibleView instanceof Resources.CookieItemsView) {
// Local Storage, Session Storage || Cookies
visibleView.refreshItems();
} else if (visibleView instanceof Resources.DatabaseTableView) {
// Web SQL
visibleView.update();
}
this.indexedDBListTreeElement.refreshIndexedDB();
}
_refreshCacheSection() {
this.cacheStorageListTreeElement._refreshCaches();
}
/**
* @override
* @param {!SDK.Target} target
......
......@@ -26,21 +26,6 @@ li.storage-group-list-item::before {
display: none;
}
li.storage-group-list-item
.trailing-icons {
width: 14px;
height: 14px;
margin-left: 6px;
}
li.storage-group-list-item
.trailing-icons
.sidebar-section-button {
position: relative;
top: -1px;
left: -8px;
}
.navigator-tree-item {
margin: -3px -7px -3px -7px;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment