| OLD | NEW |
| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 this._domStorageViews.clear(); | 210 this._domStorageViews.clear(); |
| 211 this._domStorageTreeElements.clear(); | 211 this._domStorageTreeElements.clear(); |
| 212 this._cookieViews = {}; | 212 this._cookieViews = {}; |
| 213 | 213 |
| 214 this.databasesListTreeElement.removeChildren(); | 214 this.databasesListTreeElement.removeChildren(); |
| 215 this.localStorageListTreeElement.removeChildren(); | 215 this.localStorageListTreeElement.removeChildren(); |
| 216 this.sessionStorageListTreeElement.removeChildren(); | 216 this.sessionStorageListTreeElement.removeChildren(); |
| 217 this.cookieListTreeElement.removeChildren(); | 217 this.cookieListTreeElement.removeChildren(); |
| 218 this.cacheStorageListTreeElement.removeChildren(); | 218 this.cacheStorageListTreeElement.removeChildren(); |
| 219 | 219 |
| 220 if (this.visibleView && !(this.visibleView instanceof WebInspector.Stora
geCategoryView) && !(this.visibleView instanceof WebInspector.ServiceWorkersView
)) | 220 if (this.visibleView && !(this.visibleView instanceof WebInspector.Stora
geCategoryView)) |
| 221 this.visibleView.detach(); | 221 this.visibleView.detach(); |
| 222 | 222 |
| 223 this._storageViewToolbar.removeToolbarItems(); | 223 this._storageViewToolbar.removeToolbarItems(); |
| 224 | 224 |
| 225 if (this._sidebarTree.selectedTreeElement) | 225 if (this._sidebarTree.selectedTreeElement) |
| 226 this._sidebarTree.selectedTreeElement.deselect(); | 226 this._sidebarTree.selectedTreeElement.deselect(); |
| 227 }, | 227 }, |
| 228 | 228 |
| 229 _populateResourceTree: function() | 229 _populateResourceTree: function() |
| 230 { | 230 { |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 | 528 |
| 529 /** | 529 /** |
| 530 * @param {!WebInspector.Widget} view | 530 * @param {!WebInspector.Widget} view |
| 531 */ | 531 */ |
| 532 showServiceWorkerCache: function(view) | 532 showServiceWorkerCache: function(view) |
| 533 { | 533 { |
| 534 this._innerShowView(view); | 534 this._innerShowView(view); |
| 535 }, | 535 }, |
| 536 | 536 |
| 537 /** | 537 /** |
| 538 * @param {!WebInspector.Widget} view | |
| 539 */ | |
| 540 showServiceWorkersView: function(view) | |
| 541 { | |
| 542 this._innerShowView(view); | |
| 543 }, | |
| 544 | |
| 545 /** | |
| 546 * @param {!WebInspector.DOMStorage} domStorage | 538 * @param {!WebInspector.DOMStorage} domStorage |
| 547 */ | 539 */ |
| 548 _showDOMStorage: function(domStorage) | 540 _showDOMStorage: function(domStorage) |
| 549 { | 541 { |
| 550 if (!domStorage) | 542 if (!domStorage) |
| 551 return; | 543 return; |
| 552 | 544 |
| 553 var view; | 545 var view; |
| 554 view = this._domStorageViews.get(domStorage); | 546 view = this._domStorageViews.get(domStorage); |
| 555 if (!view) { | 547 if (!view) { |
| (...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1529 { | 1521 { |
| 1530 return "service-workers://"; | 1522 return "service-workers://"; |
| 1531 }, | 1523 }, |
| 1532 | 1524 |
| 1533 /** | 1525 /** |
| 1534 * @override | 1526 * @override |
| 1535 * @return {boolean} | 1527 * @return {boolean} |
| 1536 */ | 1528 */ |
| 1537 onselect: function(selectedByUser) | 1529 onselect: function(selectedByUser) |
| 1538 { | 1530 { |
| 1539 WebInspector.BaseStorageTreeElement.prototype.onselect.call(this, select
edByUser); | 1531 WebInspector.inspectorView.showViewInDrawer("service_workers"); |
| 1540 if (!this._view) | 1532 var view = new WebInspector.VBox(); |
| 1541 this._view = new WebInspector.ServiceWorkersView(); | 1533 view.element.createChild("div", "service-worker-info-message").textConte
nt = WebInspector.UIString("Service Worker inspector pane moved into the drawer
below"); |
| 1542 this._storagePanel.showServiceWorkersView(this._view); | 1534 this._storagePanel._innerShowView(view); |
| 1543 return false; | 1535 return false; |
| 1544 }, | 1536 }, |
| 1545 | 1537 |
| 1546 __proto__: WebInspector.BaseStorageTreeElement.prototype | 1538 __proto__: WebInspector.BaseStorageTreeElement.prototype |
| 1547 } | 1539 } |
| 1548 | 1540 |
| 1549 | 1541 |
| 1550 /** | 1542 /** |
| 1551 * @constructor | 1543 * @constructor |
| 1552 * @extends {WebInspector.StorageCategoryTreeElement} | 1544 * @extends {WebInspector.StorageCategoryTreeElement} |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2217 WebInspector.ResourcesPanelFactory.prototype = { | 2209 WebInspector.ResourcesPanelFactory.prototype = { |
| 2218 /** | 2210 /** |
| 2219 * @override | 2211 * @override |
| 2220 * @return {!WebInspector.Panel} | 2212 * @return {!WebInspector.Panel} |
| 2221 */ | 2213 */ |
| 2222 createPanel: function() | 2214 createPanel: function() |
| 2223 { | 2215 { |
| 2224 return WebInspector.ResourcesPanel._instance(); | 2216 return WebInspector.ResourcesPanel._instance(); |
| 2225 } | 2217 } |
| 2226 } | 2218 } |
| OLD | NEW |