Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js |
| index 43df4dd5c596ebe1314e4780f048783a1c9291a2..e3e4ed89b8ee702d7b7341f3800a4b1110f26db5 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js |
| @@ -56,21 +56,21 @@ WebInspector.ResourcesPanel = function() |
| this._applicationTreeElement.appendChild(clearStorageTreeElement); |
| var storageTreeElement = this._addSidebarSection(WebInspector.UIString("Storage")); |
| - this.localStorageListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Local Storage"), "LocalStorage", ["domstorage-storage-tree-item", "local-storage"]); |
| + this.localStorageListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Local Storage"), "LocalStorage", ["localstorage-tree-item", "table-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:50
localstorage-tree-item is unused.
chowse
2016/05/18 17:17:42
Done.
|
| storageTreeElement.appendChild(this.localStorageListTreeElement); |
| - this.sessionStorageListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Session Storage"), "SessionStorage", ["domstorage-storage-tree-item", "session-storage"]); |
| + this.sessionStorageListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Session Storage"), "SessionStorage", ["sessionstorage-tree-item", "table-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:50
ditto
chowse
2016/05/18 17:17:42
Done.
|
| storageTreeElement.appendChild(this.sessionStorageListTreeElement); |
| this.indexedDBListTreeElement = new WebInspector.IndexedDBTreeElement(this); |
| storageTreeElement.appendChild(this.indexedDBListTreeElement); |
| - this.databasesListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Web SQL"), "Databases", ["database-storage-tree-item"]); |
| + this.databasesListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Web SQL"), "Databases", ["websql-tree-item", "database-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:50
websql-tree-item is unused.
chowse
2016/05/18 17:17:42
Done.
|
| storageTreeElement.appendChild(this.databasesListTreeElement); |
| - this.cookieListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Cookies"), "Cookies", ["cookie-storage-tree-item"]); |
| + this.cookieListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Cookies"), "Cookies", ["cookie-tree-item", "resource-tree-item"]); |
| storageTreeElement.appendChild(this.cookieListTreeElement); |
| var cacheTreeElement = this._addSidebarSection(WebInspector.UIString("Cache")); |
| this.cacheStorageListTreeElement = new WebInspector.ServiceWorkerCacheTreeElement(this); |
| cacheTreeElement.appendChild(this.cacheStorageListTreeElement); |
| - this.applicationCacheListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Application Cache"), "ApplicationCache", ["application-cache-storage-tree-item"]); |
| + this.applicationCacheListTreeElement = new WebInspector.StorageCategoryTreeElement(this, WebInspector.UIString("Application Cache"), "ApplicationCache", ["appcache-tree-item", "table-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:50
ditto
chowse
2016/05/18 17:17:42
Done.
|
| cacheTreeElement.appendChild(this.applicationCacheListTreeElement); |
| this.resourcesListTreeElement = this._addSidebarSection(WebInspector.UIString("Frames")); |
| @@ -436,7 +436,7 @@ WebInspector.ResourcesPanel.prototype = { |
| { |
| console.assert(!this._domStorageTreeElements.get(domStorage)); |
| - var domStorageTreeElement = new WebInspector.DOMStorageTreeElement(this, domStorage, (domStorage.isLocalStorage ? "local-storage" : "session-storage")); |
| + var domStorageTreeElement = new WebInspector.DOMStorageTreeElement(this, domStorage, (domStorage.isLocalStorage ? "local-storage-tree-item" : "session-storage-tree-item")); |
|
pfeldman
2016/05/18 05:36:50
no need for icons on actual elements?
chowse
2016/05/18 17:17:42
Done.
|
| this._domStorageTreeElements.set(domStorage, domStorageTreeElement); |
| if (domStorage.isLocalStorage) |
| this.localStorageListTreeElement.appendChild(domStorageTreeElement); |
| @@ -984,7 +984,7 @@ WebInspector.StorageCategoryTreeElement.prototype = { |
| */ |
| WebInspector.FrameTreeElement = function(storagePanel, frame) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, "", ["navigator-tree-item", "navigator-folder-tree-item"]); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, "", ["navigator-tree-item", "navigator-frame-tree-item"]); |
| this._frame = frame; |
| this.frameNavigated(frame); |
| } |
| @@ -1204,7 +1204,7 @@ WebInspector.FrameResourceTreeElement.prototype = { |
| */ |
| WebInspector.DatabaseTreeElement = function(storagePanel, database) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, database.name, ["database-storage-tree-item"], true); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, database.name, ["database-tree-item", "resource-tree-item"], true); |
| this._database = database; |
| } |
| @@ -1259,7 +1259,7 @@ WebInspector.DatabaseTreeElement.prototype = { |
| */ |
| WebInspector.DatabaseTableTreeElement = function(storagePanel, database, tableName) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, tableName, ["database-table-storage-tree-item"]); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, tableName, ["table-tree-item", "resource-tree-item"]); |
| this._database = database; |
| this._tableName = tableName; |
| } |
| @@ -1292,7 +1292,7 @@ WebInspector.DatabaseTableTreeElement.prototype = { |
| */ |
| WebInspector.ServiceWorkerCacheTreeElement = function(storagePanel) |
| { |
| - WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspector.UIString("Cache Storage"), "CacheStorage", ["service-worker-cache-storage-tree-item"]); |
| + WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspector.UIString("Cache Storage"), "CacheStorage", ["service-worker-cache-tree-item", "database-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:49
Remove service-worker-cache-tree-item
chowse
2016/05/18 17:17:42
Done.
|
| } |
| WebInspector.ServiceWorkerCacheTreeElement.prototype = { |
| @@ -1402,7 +1402,7 @@ WebInspector.ServiceWorkerCacheTreeElement.prototype = { |
| */ |
| WebInspector.SWCacheTreeElement = function(storagePanel, model, cache) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, cache.cacheName + " - " + cache.securityOrigin, ["service-worker-cache-tree-item"]); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, cache.cacheName + " - " + cache.securityOrigin, ["service-worker-cache-tree-item", "table-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:50
ditto
chowse
2016/05/18 17:17:42
Done.
|
| this._model = model; |
| this._cache = cache; |
| } |
| @@ -1473,7 +1473,7 @@ WebInspector.SWCacheTreeElement.prototype = { |
| */ |
| WebInspector.ServiceWorkersTreeElement = function(storagePanel) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Service Workers"), [], false, true); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Service Workers"), ["service-worker-tree-item", "resource-tree-item"], false, false); |
|
pfeldman
2016/05/18 05:36:50
here and below: no need to specify "false, false",
chowse
2016/05/18 17:17:42
Done.
|
| } |
| WebInspector.ServiceWorkersTreeElement.prototype = { |
| @@ -1508,7 +1508,7 @@ WebInspector.ServiceWorkersTreeElement.prototype = { |
| */ |
| WebInspector.AppManifestTreeElement = function(storagePanel) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Manifest"), [], false, true); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Manifest"), ["manifest-tree-item", "resource-tree-item"], false, false); |
| } |
| WebInspector.AppManifestTreeElement.prototype = { |
| @@ -1543,7 +1543,7 @@ WebInspector.AppManifestTreeElement.prototype = { |
| */ |
| WebInspector.ClearStorageTreeElement = function(storagePanel) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Clear storage"), [], false, true); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UIString("Clear storage"), ["clear-storage-tree-item", "resource-tree-item"], false, false); |
| } |
| WebInspector.ClearStorageTreeElement.prototype = { |
| @@ -1578,7 +1578,7 @@ WebInspector.ClearStorageTreeElement.prototype = { |
| */ |
| WebInspector.IndexedDBTreeElement = function(storagePanel) |
| { |
| - WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspector.UIString("IndexedDB"), "IndexedDB", ["indexed-db-storage-tree-item"]); |
| + WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspector.UIString("IndexedDB"), "IndexedDB", ["indexed-db-tree-item", "database-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:50
Remove indexed-db-tree-item
chowse
2016/05/18 17:17:42
Done.
|
| } |
| WebInspector.IndexedDBTreeElement.prototype = { |
| @@ -1704,7 +1704,7 @@ WebInspector.IndexedDBTreeElement.prototype = { |
| */ |
| WebInspector.IDBDatabaseTreeElement = function(storagePanel, model, databaseId) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, databaseId.name + " - " + databaseId.securityOrigin, ["indexed-db-storage-tree-item"]); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, databaseId.name + " - " + databaseId.securityOrigin, ["indexed-db-tree-item", "database-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:49
ditto
chowse
2016/05/18 17:17:42
Done.
|
| this._model = model; |
| this._databaseId = databaseId; |
| this._idbObjectStoreTreeElements = {}; |
| @@ -1811,7 +1811,7 @@ WebInspector.IDBDatabaseTreeElement.prototype = { |
| */ |
| WebInspector.IDBObjectStoreTreeElement = function(storagePanel, model, databaseId, objectStore) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, objectStore.name, ["indexed-db-object-store-storage-tree-item"]); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, objectStore.name, ["indexed-db-tree-item", "table-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:50
ditto
chowse
2016/05/18 17:17:42
Done.
|
| this._model = model; |
| this._databaseId = databaseId; |
| this._idbIndexTreeElements = {}; |
| @@ -1942,7 +1942,7 @@ WebInspector.IDBObjectStoreTreeElement.prototype = { |
| */ |
| WebInspector.IDBIndexTreeElement = function(storagePanel, model, databaseId, objectStore, index) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, index.name, ["indexed-db-index-storage-tree-item"]); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, index.name, ["indexed-db-tree-item", "index-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:50
ditto
chowse
2016/05/18 17:17:42
Done.
|
| this._model = model; |
| this._databaseId = databaseId; |
| this._objectStore = objectStore; |
| @@ -2009,7 +2009,7 @@ WebInspector.IDBIndexTreeElement.prototype = { |
| */ |
| WebInspector.DOMStorageTreeElement = function(storagePanel, domStorage, className) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, domStorage.securityOrigin ? domStorage.securityOrigin : WebInspector.UIString("Local Files"), ["domstorage-storage-tree-item", className]); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, domStorage.securityOrigin ? domStorage.securityOrigin : WebInspector.UIString("Local Files"), [className, "table-tree-item", "resource-tree-item"]); |
|
pfeldman
2016/05/18 05:36:50
no need for className anymore
chowse
2016/05/18 17:17:42
Done.
|
| this._domStorage = domStorage; |
| } |
| @@ -2039,7 +2039,7 @@ WebInspector.DOMStorageTreeElement.prototype = { |
| */ |
| WebInspector.CookieTreeElement = function(storagePanel, cookieDomain) |
| { |
| - WebInspector.BaseStorageTreeElement.call(this, storagePanel, cookieDomain ? cookieDomain : WebInspector.UIString("Local Files"), ["cookie-storage-tree-item"]); |
| + WebInspector.BaseStorageTreeElement.call(this, storagePanel, cookieDomain ? cookieDomain : WebInspector.UIString("Local Files"), ["cookie-tree-item", "resource-tree-item"]); |
| this._cookieDomain = cookieDomain; |
| } |