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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js

Issue 1942523002: DevTools: render parsed manifest data in the resources panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 29 matching lines...) Expand all
40 40
41 this._resourcesLastSelectedItemSetting = WebInspector.settings.createSetting ("resourcesLastSelectedItem", {}); 41 this._resourcesLastSelectedItemSetting = WebInspector.settings.createSetting ("resourcesLastSelectedItem", {});
42 42
43 this._sidebarTree = new TreeOutlineInShadow(); 43 this._sidebarTree = new TreeOutlineInShadow();
44 this._sidebarTree.element.classList.add("resources-sidebar"); 44 this._sidebarTree.element.classList.add("resources-sidebar");
45 this._sidebarTree.registerRequiredCSS("resources/resourcesSidebar.css"); 45 this._sidebarTree.registerRequiredCSS("resources/resourcesSidebar.css");
46 this._sidebarTree.element.classList.add("filter-all", "outline-disclosure"); 46 this._sidebarTree.element.classList.add("filter-all", "outline-disclosure");
47 this.panelSidebarElement().appendChild(this._sidebarTree.element); 47 this.panelSidebarElement().appendChild(this._sidebarTree.element);
48 this.setDefaultFocusedElement(this._sidebarTree.element); 48 this.setDefaultFocusedElement(this._sidebarTree.element);
49 49
50 var storageTreeElement = new TreeElement(WebInspector.UIString("Storage"), t rue); 50 this._applicationTreeElement = this._addSidebarSection(WebInspector.UIString ("Application"));
51 storageTreeElement.listItemElement.classList.add("storage-group-list-item"); 51 var manifestTreeElement = new WebInspector.AppManifestTreeElement(this);
52 storageTreeElement.setCollapsible(false); 52 this._applicationTreeElement.appendChild(manifestTreeElement);
53 storageTreeElement.selectable = false;
54 this._sidebarTree.appendChild(storageTreeElement);
55 53
54 var storageTreeElement = this._addSidebarSection(WebInspector.UIString("Stor age"));
56 this.localStorageListTreeElement = new WebInspector.StorageCategoryTreeEleme nt(this, WebInspector.UIString("Local Storage"), "LocalStorage", ["domstorage-st orage-tree-item", "local-storage"]); 55 this.localStorageListTreeElement = new WebInspector.StorageCategoryTreeEleme nt(this, WebInspector.UIString("Local Storage"), "LocalStorage", ["domstorage-st orage-tree-item", "local-storage"]);
57 storageTreeElement.appendChild(this.localStorageListTreeElement); 56 storageTreeElement.appendChild(this.localStorageListTreeElement);
58
59 this.sessionStorageListTreeElement = new WebInspector.StorageCategoryTreeEle ment(this, WebInspector.UIString("Session Storage"), "SessionStorage", ["domstor age-storage-tree-item", "session-storage"]); 57 this.sessionStorageListTreeElement = new WebInspector.StorageCategoryTreeEle ment(this, WebInspector.UIString("Session Storage"), "SessionStorage", ["domstor age-storage-tree-item", "session-storage"]);
60 storageTreeElement.appendChild(this.sessionStorageListTreeElement); 58 storageTreeElement.appendChild(this.sessionStorageListTreeElement);
61
62 this.indexedDBListTreeElement = new WebInspector.IndexedDBTreeElement(this); 59 this.indexedDBListTreeElement = new WebInspector.IndexedDBTreeElement(this);
63 storageTreeElement.appendChild(this.indexedDBListTreeElement); 60 storageTreeElement.appendChild(this.indexedDBListTreeElement);
64
65 this.databasesListTreeElement = new WebInspector.StorageCategoryTreeElement( this, WebInspector.UIString("Web SQL"), "Databases", ["database-storage-tree-ite m"]); 61 this.databasesListTreeElement = new WebInspector.StorageCategoryTreeElement( this, WebInspector.UIString("Web SQL"), "Databases", ["database-storage-tree-ite m"]);
66 storageTreeElement.appendChild(this.databasesListTreeElement); 62 storageTreeElement.appendChild(this.databasesListTreeElement);
67
68 this.cookieListTreeElement = new WebInspector.StorageCategoryTreeElement(thi s, WebInspector.UIString("Cookies"), "Cookies", ["cookie-storage-tree-item"]); 63 this.cookieListTreeElement = new WebInspector.StorageCategoryTreeElement(thi s, WebInspector.UIString("Cookies"), "Cookies", ["cookie-storage-tree-item"]);
69 storageTreeElement.appendChild(this.cookieListTreeElement); 64 storageTreeElement.appendChild(this.cookieListTreeElement);
70 65
71 var cacheTreeElement = new TreeElement(WebInspector.UIString("Cache"), true) ; 66 var cacheTreeElement = this._addSidebarSection(WebInspector.UIString("Cache" ));
72 cacheTreeElement.listItemElement.classList.add("storage-group-list-item");
73 cacheTreeElement.setCollapsible(false);
74 cacheTreeElement.selectable = false;
75 this._sidebarTree.appendChild(cacheTreeElement);
76
77 this.cacheStorageListTreeElement = new WebInspector.ServiceWorkerCacheTreeEl ement(this); 67 this.cacheStorageListTreeElement = new WebInspector.ServiceWorkerCacheTreeEl ement(this);
78 cacheTreeElement.appendChild(this.cacheStorageListTreeElement); 68 cacheTreeElement.appendChild(this.cacheStorageListTreeElement);
79
80 this.applicationCacheListTreeElement = new WebInspector.StorageCategoryTreeE lement(this, WebInspector.UIString("Application Cache"), "ApplicationCache", ["a pplication-cache-storage-tree-item"]); 69 this.applicationCacheListTreeElement = new WebInspector.StorageCategoryTreeE lement(this, WebInspector.UIString("Application Cache"), "ApplicationCache", ["a pplication-cache-storage-tree-item"]);
81 cacheTreeElement.appendChild(this.applicationCacheListTreeElement); 70 cacheTreeElement.appendChild(this.applicationCacheListTreeElement);
82 71
83 this.resourcesListTreeElement = new TreeElement(WebInspector.UIString("Frame s"), true); 72 this.resourcesListTreeElement = this._addSidebarSection(WebInspector.UIStrin g("Frames"));
84 this.resourcesListTreeElement.listItemElement.classList.add("storage-group-l ist-item");
85 this.resourcesListTreeElement.setCollapsible(false);
86 this.resourcesListTreeElement.selectable = false;
87 this._sidebarTree.appendChild(this.resourcesListTreeElement);
88 73
89 var mainContainer = new WebInspector.VBox(); 74 var mainContainer = new WebInspector.VBox();
90 this.storageViews = mainContainer.element.createChild("div", "vbox flex-auto "); 75 this.storageViews = mainContainer.element.createChild("div", "vbox flex-auto ");
91 this._storageViewToolbar = new WebInspector.Toolbar("resources-toolbar", mai nContainer.element); 76 this._storageViewToolbar = new WebInspector.Toolbar("resources-toolbar", mai nContainer.element);
92 this.splitWidget().setMainWidget(mainContainer); 77 this.splitWidget().setMainWidget(mainContainer);
93 78
94 /** @type {!Map.<!WebInspector.Database, !Object.<string, !WebInspector.Data baseTableView>>} */ 79 /** @type {!Map.<!WebInspector.Database, !Object.<string, !WebInspector.Data baseTableView>>} */
95 this._databaseTableViews = new Map(); 80 this._databaseTableViews = new Map();
96 /** @type {!Map.<!WebInspector.Database, !WebInspector.DatabaseQueryView>} * / 81 /** @type {!Map.<!WebInspector.Database, !WebInspector.DatabaseQueryView>} * /
97 this._databaseQueryViews = new Map(); 82 this._databaseQueryViews = new Map();
98 /** @type {!Map.<!WebInspector.Database, !WebInspector.DatabaseTreeElement>} */ 83 /** @type {!Map.<!WebInspector.Database, !WebInspector.DatabaseTreeElement>} */
99 this._databaseTreeElements = new Map(); 84 this._databaseTreeElements = new Map();
100 /** @type {!Map.<!WebInspector.DOMStorage, !WebInspector.DOMStorageItemsView >} */ 85 /** @type {!Map.<!WebInspector.DOMStorage, !WebInspector.DOMStorageItemsView >} */
101 this._domStorageViews = new Map(); 86 this._domStorageViews = new Map();
102 /** @type {!Map.<!WebInspector.DOMStorage, !WebInspector.DOMStorageTreeEleme nt>} */ 87 /** @type {!Map.<!WebInspector.DOMStorage, !WebInspector.DOMStorageTreeEleme nt>} */
103 this._domStorageTreeElements = new Map(); 88 this._domStorageTreeElements = new Map();
104 /** @type {!Object.<string, !WebInspector.CookieItemsView>} */ 89 /** @type {!Object.<string, !WebInspector.CookieItemsView>} */
105 this._cookieViews = {}; 90 this._cookieViews = {};
106 /** @type {!Object.<string, boolean>} */ 91 /** @type {!Object.<string, boolean>} */
107 this._domains = {}; 92 this._domains = {};
108 93
109 this.panelSidebarElement().addEventListener("mousemove", this._onmousemove.b ind(this), false); 94 this.panelSidebarElement().addEventListener("mousemove", this._onmousemove.b ind(this), false);
110 this.panelSidebarElement().addEventListener("mouseleave", this._onmouseleave .bind(this), false); 95 this.panelSidebarElement().addEventListener("mouseleave", this._onmouseleave .bind(this), false);
111 96
112 WebInspector.targetManager.observeTargets(this); 97 WebInspector.targetManager.observeTargets(this);
113 } 98 }
114 99
115 WebInspector.ResourcesPanel.prototype = { 100 WebInspector.ResourcesPanel.prototype = {
101 /**
102 * @param {string} title
103 * @return {!TreeElement}
104 */
105 _addSidebarSection: function(title)
106 {
107 var treeElement = new TreeElement(title, true);
108 treeElement.listItemElement.classList.add("storage-group-list-item");
109 treeElement.setCollapsible(false);
110 treeElement.selectable = false;
111 this._sidebarTree.appendChild(treeElement);
112 return treeElement;
113 },
114
116 wasShown: function() 115 wasShown: function()
117 { 116 {
118 if (!this._sidebarTree.selectedTreeElement) { 117 if (!this._sidebarTree.selectedTreeElement) {
119 if (this.serviceWorkersTreeElement) 118 if (this.serviceWorkersTreeElement)
120 this.serviceWorkersTreeElement.select(); 119 this.serviceWorkersTreeElement.select();
121 else 120 else
122 this.localStorageListTreeElement.select(); 121 this.localStorageListTreeElement.select();
123 } 122 }
124 }, 123 },
125 124
126 /** 125 /**
127 * @override 126 * @override
128 * @param {!WebInspector.Target} target 127 * @param {!WebInspector.Target} target
129 */ 128 */
130 targetAdded: function(target) 129 targetAdded: function(target)
131 { 130 {
132 if (this._target) 131 if (this._target)
133 return; 132 return;
134 this._target = target; 133 this._target = target;
135 134
136 if (target.serviceWorkerManager) { 135 if (target.serviceWorkerManager) {
137 this.serviceWorkersTreeElement = new WebInspector.ServiceWorkersTree Element(this); 136 this.serviceWorkersTreeElement = new WebInspector.ServiceWorkersTree Element(this);
138 this._sidebarTree.insertChild(this.serviceWorkersTreeElement, 0); 137 this._applicationTreeElement.insertChild(this.serviceWorkersTreeElem ent, 0);
139 } 138 }
140 139
141 this._databaseModel = WebInspector.DatabaseModel.fromTarget(target); 140 this._databaseModel = WebInspector.DatabaseModel.fromTarget(target);
142 this._domStorageModel = WebInspector.DOMStorageModel.fromTarget(target); 141 this._domStorageModel = WebInspector.DOMStorageModel.fromTarget(target);
143 142
144 if (target.resourceTreeModel.cachedResourcesLoaded()) 143 if (target.resourceTreeModel.cachedResourcesLoaded())
145 this._initialize(); 144 this._initialize();
146 145
147 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel .EventTypes.Load, this._loadEventFired, this); 146 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel .EventTypes.Load, this._loadEventFired, this);
148 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel .EventTypes.CachedResourcesLoaded, this._initialize, this); 147 target.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel .EventTypes.CachedResourcesLoaded, this._initialize, this);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 this._domStorageViews.clear(); 236 this._domStorageViews.clear();
238 this._domStorageTreeElements.clear(); 237 this._domStorageTreeElements.clear();
239 this._cookieViews = {}; 238 this._cookieViews = {};
240 239
241 this.databasesListTreeElement.removeChildren(); 240 this.databasesListTreeElement.removeChildren();
242 this.localStorageListTreeElement.removeChildren(); 241 this.localStorageListTreeElement.removeChildren();
243 this.sessionStorageListTreeElement.removeChildren(); 242 this.sessionStorageListTreeElement.removeChildren();
244 this.cookieListTreeElement.removeChildren(); 243 this.cookieListTreeElement.removeChildren();
245 this.cacheStorageListTreeElement.removeChildren(); 244 this.cacheStorageListTreeElement.removeChildren();
246 245
247 if (this.visibleView && !(this.visibleView instanceof WebInspector.Stora geCategoryView) && !(this.visibleView instanceof WebInspector.ServiceWorkersView )) 246 if (this.visibleView && !(this.visibleView instanceof WebInspector.Stora geCategoryView)
247 && !(this.visibleView instanceof WebInspector.ServiceWorkersView)
248 && !(this.visibleView instanceof WebInspector.AppManifestView)) {
248 this.visibleView.detach(); 249 this.visibleView.detach();
250 delete this.visibleView;
251 }
249 252
250 this._storageViewToolbar.removeToolbarItems(); 253 this._storageViewToolbar.removeToolbarItems();
251 254
252 if (this._sidebarTree.selectedTreeElement) 255 if (this._sidebarTree.selectedTreeElement)
253 this._sidebarTree.selectedTreeElement.deselect(); 256 this._sidebarTree.selectedTreeElement.deselect();
254 }, 257 },
255 258
256 _populateResourceTree: function() 259 _populateResourceTree: function()
257 { 260 {
258 this._treeElementForFrameId = {}; 261 this._treeElementForFrameId = {};
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 view = new WebInspector.DatabaseQueryView(database); 542 view = new WebInspector.DatabaseQueryView(database);
540 this._databaseQueryViews.set(database, view); 543 this._databaseQueryViews.set(database, view);
541 view.addEventListener(WebInspector.DatabaseQueryView.Events.Sche maUpdated, this._updateDatabaseTables, this); 544 view.addEventListener(WebInspector.DatabaseQueryView.Events.Sche maUpdated, this._updateDatabaseTables, this);
542 } 545 }
543 } 546 }
544 547
545 this._innerShowView(view); 548 this._innerShowView(view);
546 }, 549 },
547 550
548 /** 551 /**
549 * @param {!WebInspector.Widget} view
550 */
551 showIndexedDB: function(view)
552 {
553 this._innerShowView(view);
554 },
555
556 /**
557 * @param {!WebInspector.Widget} view
558 */
559 showServiceWorkerCache: function(view)
560 {
561 this._innerShowView(view);
562 },
563
564 /**
565 * @param {!WebInspector.Widget} view
566 */
567 showServiceWorkersView: function(view)
568 {
569 this._innerShowView(view);
570 },
571
572 /**
573 * @param {!WebInspector.DOMStorage} domStorage 552 * @param {!WebInspector.DOMStorage} domStorage
574 */ 553 */
575 _showDOMStorage: function(domStorage) 554 _showDOMStorage: function(domStorage)
576 { 555 {
577 if (!domStorage) 556 if (!domStorage)
578 return; 557 return;
579 558
580 var view; 559 var view;
581 view = this._domStorageViews.get(domStorage); 560 view = this._domStorageViews.get(domStorage);
582 if (!view) { 561 if (!view) {
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 /** 1402 /**
1424 * @override 1403 * @override
1425 * @return {boolean} 1404 * @return {boolean}
1426 */ 1405 */
1427 onselect: function(selectedByUser) 1406 onselect: function(selectedByUser)
1428 { 1407 {
1429 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser); 1408 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser);
1430 if (!this._view) 1409 if (!this._view)
1431 this._view = new WebInspector.ServiceWorkerCacheView(this._model, th is._cache); 1410 this._view = new WebInspector.ServiceWorkerCacheView(this._model, th is._cache);
1432 1411
1433 this._storagePanel.showServiceWorkerCache(this._view); 1412 this._storagePanel._innerShowView(this._view);
1434 return false; 1413 return false;
1435 }, 1414 },
1436 1415
1437 clear: function() 1416 clear: function()
1438 { 1417 {
1439 if (this._view) 1418 if (this._view)
1440 this._view.clear(); 1419 this._view.clear();
1441 }, 1420 },
1442 1421
1443 __proto__: WebInspector.BaseStorageTreeElement.prototype 1422 __proto__: WebInspector.BaseStorageTreeElement.prototype
(...skipping 21 matching lines...) Expand all
1465 1444
1466 /** 1445 /**
1467 * @override 1446 * @override
1468 * @return {boolean} 1447 * @return {boolean}
1469 */ 1448 */
1470 onselect: function(selectedByUser) 1449 onselect: function(selectedByUser)
1471 { 1450 {
1472 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser); 1451 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser);
1473 if (!this._view) 1452 if (!this._view)
1474 this._view = new WebInspector.ServiceWorkersView(); 1453 this._view = new WebInspector.ServiceWorkersView();
1475 this._storagePanel.showServiceWorkersView(this._view); 1454 this._storagePanel._innerShowView(this._view);
1476 return false; 1455 return false;
1477 }, 1456 },
1478 1457
1479 __proto__: WebInspector.BaseStorageTreeElement.prototype 1458 __proto__: WebInspector.BaseStorageTreeElement.prototype
1480 } 1459 }
1481 1460
1461 /**
1462 * @constructor
1463 * @extends {WebInspector.BaseStorageTreeElement}
1464 * @param {!WebInspector.ResourcesPanel} storagePanel
1465 */
1466 WebInspector.AppManifestTreeElement = function(storagePanel)
1467 {
1468 WebInspector.BaseStorageTreeElement.call(this, storagePanel, WebInspector.UI String("Manifest"), [], false);
1469 }
1470
1471 WebInspector.AppManifestTreeElement.prototype = {
1472 /**
1473 * @return {string}
1474 */
1475 get itemURL()
1476 {
1477 return "manifest://";
1478 },
1479
1480 /**
1481 * @override
1482 * @return {boolean}
1483 */
1484 onselect: function(selectedByUser)
1485 {
1486 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser);
1487 if (!this._view)
1488 this._view = new WebInspector.AppManifestView();
1489 this._storagePanel._innerShowView(this._view);
1490 return false;
1491 },
1492
1493 __proto__: WebInspector.BaseStorageTreeElement.prototype
1494 }
1482 1495
1483 /** 1496 /**
1484 * @constructor 1497 * @constructor
1485 * @extends {WebInspector.StorageCategoryTreeElement} 1498 * @extends {WebInspector.StorageCategoryTreeElement}
1486 * @param {!WebInspector.ResourcesPanel} storagePanel 1499 * @param {!WebInspector.ResourcesPanel} storagePanel
1487 */ 1500 */
1488 WebInspector.IndexedDBTreeElement = function(storagePanel) 1501 WebInspector.IndexedDBTreeElement = function(storagePanel)
1489 { 1502 {
1490 WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspecto r.UIString("IndexedDB"), "IndexedDB", ["indexed-db-storage-tree-item"]); 1503 WebInspector.StorageCategoryTreeElement.call(this, storagePanel, WebInspecto r.UIString("IndexedDB"), "IndexedDB", ["indexed-db-storage-tree-item"]);
1491 } 1504 }
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 /** 1692 /**
1680 * @override 1693 * @override
1681 * @return {boolean} 1694 * @return {boolean}
1682 */ 1695 */
1683 onselect: function(selectedByUser) 1696 onselect: function(selectedByUser)
1684 { 1697 {
1685 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser); 1698 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser);
1686 if (!this._view) 1699 if (!this._view)
1687 this._view = new WebInspector.IDBDatabaseView(this._database); 1700 this._view = new WebInspector.IDBDatabaseView(this._database);
1688 1701
1689 this._storagePanel.showIndexedDB(this._view); 1702 this._storagePanel._innerShowView(this._view);
1690 return false; 1703 return false;
1691 }, 1704 },
1692 1705
1693 /** 1706 /**
1694 * @param {string} objectStoreName 1707 * @param {string} objectStoreName
1695 */ 1708 */
1696 _objectStoreRemoved: function(objectStoreName) 1709 _objectStoreRemoved: function(objectStoreName)
1697 { 1710 {
1698 var objectStoreTreeElement = this._idbObjectStoreTreeElements[objectStor eName]; 1711 var objectStoreTreeElement = this._idbObjectStoreTreeElements[objectStor eName];
1699 objectStoreTreeElement.clear(); 1712 objectStoreTreeElement.clear();
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 /** 1820 /**
1808 * @override 1821 * @override
1809 * @return {boolean} 1822 * @return {boolean}
1810 */ 1823 */
1811 onselect: function(selectedByUser) 1824 onselect: function(selectedByUser)
1812 { 1825 {
1813 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser); 1826 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser);
1814 if (!this._view) 1827 if (!this._view)
1815 this._view = new WebInspector.IDBDataView(this._model, this._databas eId, this._objectStore, null); 1828 this._view = new WebInspector.IDBDataView(this._model, this._databas eId, this._objectStore, null);
1816 1829
1817 this._storagePanel.showIndexedDB(this._view); 1830 this._storagePanel._innerShowView(this._view);
1818 return false; 1831 return false;
1819 }, 1832 },
1820 1833
1821 /** 1834 /**
1822 * @param {string} indexName 1835 * @param {string} indexName
1823 */ 1836 */
1824 _indexRemoved: function(indexName) 1837 _indexRemoved: function(indexName)
1825 { 1838 {
1826 var indexTreeElement = this._idbIndexTreeElements[indexName]; 1839 var indexTreeElement = this._idbIndexTreeElements[indexName];
1827 indexTreeElement.clear(); 1840 indexTreeElement.clear();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1892 /** 1905 /**
1893 * @override 1906 * @override
1894 * @return {boolean} 1907 * @return {boolean}
1895 */ 1908 */
1896 onselect: function(selectedByUser) 1909 onselect: function(selectedByUser)
1897 { 1910 {
1898 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser); 1911 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select edByUser);
1899 if (!this._view) 1912 if (!this._view)
1900 this._view = new WebInspector.IDBDataView(this._model, this._databas eId, this._objectStore, this._index); 1913 this._view = new WebInspector.IDBDataView(this._model, this._databas eId, this._objectStore, this._index);
1901 1914
1902 this._storagePanel.showIndexedDB(this._view); 1915 this._storagePanel._innerShowView(this._view);
1903 return false; 1916 return false;
1904 }, 1917 },
1905 1918
1906 clear: function() 1919 clear: function()
1907 { 1920 {
1908 if (this._view) 1921 if (this._view)
1909 this._view.clear(); 1922 this._view.clear();
1910 }, 1923 },
1911 1924
1912 __proto__: WebInspector.BaseStorageTreeElement.prototype 1925 __proto__: WebInspector.BaseStorageTreeElement.prototype
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
2145 WebInspector.ResourcesPanelFactory.prototype = { 2158 WebInspector.ResourcesPanelFactory.prototype = {
2146 /** 2159 /**
2147 * @override 2160 * @override
2148 * @return {!WebInspector.Panel} 2161 * @return {!WebInspector.Panel}
2149 */ 2162 */
2150 createPanel: function() 2163 createPanel: function()
2151 { 2164 {
2152 return WebInspector.ResourcesPanel._instance(); 2165 return WebInspector.ResourcesPanel._instance();
2153 } 2166 }
2154 } 2167 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698