| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 this.applicationCacheListTreeElement = | 84 this.applicationCacheListTreeElement = |
| 85 new Resources.StorageCategoryTreeElement(this, Common.UIString('Applicat
ion Cache'), 'ApplicationCache'); | 85 new Resources.StorageCategoryTreeElement(this, Common.UIString('Applicat
ion Cache'), 'ApplicationCache'); |
| 86 var applicationCacheIcon = UI.Icon.create('mediumicon-table', 'resource-tree
-item'); | 86 var applicationCacheIcon = UI.Icon.create('mediumicon-table', 'resource-tree
-item'); |
| 87 this.applicationCacheListTreeElement.setLeadingIcons([applicationCacheIcon])
; | 87 this.applicationCacheListTreeElement.setLeadingIcons([applicationCacheIcon])
; |
| 88 | 88 |
| 89 cacheTreeElement.appendChild(this.applicationCacheListTreeElement); | 89 cacheTreeElement.appendChild(this.applicationCacheListTreeElement); |
| 90 | 90 |
| 91 this.resourcesListTreeElement = this._addSidebarSection(Common.UIString('Fra
mes')); | 91 this.resourcesListTreeElement = this._addSidebarSection(Common.UIString('Fra
mes')); |
| 92 | 92 |
| 93 var mainContainer = new UI.VBox(); | 93 var mainContainer = new UI.VBox(); |
| 94 this.storageViews = mainContainer.element.createChild('div', 'vbox flex-auto
'); |
| 94 this._storageViewToolbar = new UI.Toolbar('resources-toolbar', mainContainer
.element); | 95 this._storageViewToolbar = new UI.Toolbar('resources-toolbar', mainContainer
.element); |
| 95 this.storageViews = mainContainer.element.createChild('div', 'vbox flex-auto
'); | |
| 96 this.splitWidget().setMainWidget(mainContainer); | 96 this.splitWidget().setMainWidget(mainContainer); |
| 97 | 97 |
| 98 /** @type {!Map.<!Resources.Database, !Object.<string, !Resources.DatabaseTa
bleView>>} */ | 98 /** @type {!Map.<!Resources.Database, !Object.<string, !Resources.DatabaseTa
bleView>>} */ |
| 99 this._databaseTableViews = new Map(); | 99 this._databaseTableViews = new Map(); |
| 100 /** @type {!Map.<!Resources.Database, !Resources.DatabaseQueryView>} */ | 100 /** @type {!Map.<!Resources.Database, !Resources.DatabaseQueryView>} */ |
| 101 this._databaseQueryViews = new Map(); | 101 this._databaseQueryViews = new Map(); |
| 102 /** @type {!Map.<!Resources.Database, !Resources.DatabaseTreeElement>} */ | 102 /** @type {!Map.<!Resources.Database, !Resources.DatabaseTreeElement>} */ |
| 103 this._databaseTreeElements = new Map(); | 103 this._databaseTreeElements = new Map(); |
| 104 /** @type {!Map.<!Resources.DOMStorage, !Resources.DOMStorageItemsView>} */ | 104 /** @type {!Map.<!Resources.DOMStorage, !Resources.DOMStorageItemsView>} */ |
| 105 this._domStorageViews = new Map(); | 105 this._domStorageViews = new Map(); |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 view = new Resources.DOMStorageItemsView(domStorage); | 590 view = new Resources.DOMStorageItemsView(domStorage); |
| 591 this._domStorageViews.set(domStorage, view); | 591 this._domStorageViews.set(domStorage, view); |
| 592 } | 592 } |
| 593 | 593 |
| 594 this._innerShowView(view); | 594 this._innerShowView(view); |
| 595 } | 595 } |
| 596 | 596 |
| 597 /** | 597 /** |
| 598 * @param {!Resources.CookieTreeElement} treeElement | 598 * @param {!Resources.CookieTreeElement} treeElement |
| 599 * @param {string} cookieDomain | 599 * @param {string} cookieDomain |
| 600 * @param {!SDK.ResourceTreeFrame} cookieFrameTarget | 600 * @param {!SDK.Target} cookieFrameTarget |
| 601 */ | 601 */ |
| 602 showCookies(treeElement, cookieDomain, cookieFrameTarget) { | 602 showCookies(treeElement, cookieDomain, cookieFrameTarget) { |
| 603 var view = this._cookieViews[cookieDomain]; | 603 var view = this._cookieViews[cookieDomain]; |
| 604 if (!view) { | 604 if (!view) { |
| 605 view = new Resources.CookieItemsView(treeElement, cookieFrameTarget, cooki
eDomain); | 605 view = new Resources.CookieItemsView(treeElement, cookieFrameTarget, cooki
eDomain); |
| 606 this._cookieViews[cookieDomain] = view; | 606 this._cookieViews[cookieDomain] = view; |
| 607 } | 607 } |
| 608 | 608 |
| 609 this._innerShowView(view); | 609 this._innerShowView(view); |
| 610 } | 610 } |
| 611 | 611 |
| 612 /** | 612 /** |
| 613 * @param {string} cookieDomain | 613 * @param {string} cookieDomain |
| 614 */ | 614 */ |
| 615 clearCookies(cookieDomain) { | 615 clearCookies(cookieDomain) { |
| 616 if (this._cookieViews[cookieDomain]) | 616 if (this._cookieViews[cookieDomain]) |
| 617 this._cookieViews[cookieDomain].clear(); | 617 this._cookieViews[cookieDomain].deleteAllItems(); |
| 618 } | 618 } |
| 619 | 619 |
| 620 showApplicationCache(frameId) { | 620 showApplicationCache(frameId) { |
| 621 if (!this._applicationCacheViews[frameId]) { | 621 if (!this._applicationCacheViews[frameId]) { |
| 622 this._applicationCacheViews[frameId] = | 622 this._applicationCacheViews[frameId] = |
| 623 new Resources.ApplicationCacheItemsView(this._applicationCacheModel, f
rameId); | 623 new Resources.ApplicationCacheItemsView(this._applicationCacheModel, f
rameId); |
| 624 } | 624 } |
| 625 | 625 |
| 626 this._innerShowView(this._applicationCacheViews[frameId]); | 626 this._innerShowView(this._applicationCacheViews[frameId]); |
| 627 } | 627 } |
| (...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2092 | 2092 |
| 2093 this.element.classList.add('storage-view'); | 2093 this.element.classList.add('storage-view'); |
| 2094 this._emptyWidget = new UI.EmptyWidget(''); | 2094 this._emptyWidget = new UI.EmptyWidget(''); |
| 2095 this._emptyWidget.show(this.element); | 2095 this._emptyWidget.show(this.element); |
| 2096 } | 2096 } |
| 2097 | 2097 |
| 2098 setText(text) { | 2098 setText(text) { |
| 2099 this._emptyWidget.text = text; | 2099 this._emptyWidget.text = text; |
| 2100 } | 2100 } |
| 2101 }; | 2101 }; |
| OLD | NEW |