| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 wasShown: function() | 138 wasShown: function() |
| 139 { | 139 { |
| 140 WebInspector.Panel.prototype.wasShown.call(this); | 140 WebInspector.Panel.prototype.wasShown.call(this); |
| 141 this._initialize(); | 141 this._initialize(); |
| 142 }, | 142 }, |
| 143 | 143 |
| 144 _initialize: function() | 144 _initialize: function() |
| 145 { | 145 { |
| 146 if (!this._initialized && this.isShowing() && this._cachedResourcesWereL
oaded) { | 146 if (!this._initialized && this.isShowing() && this._cachedResourcesWereL
oaded) { |
| 147 var target = /** @type {!WebInspector.Target} */ (WebInspector.targe
tManager.activeTarget()); | 147 var target = /** @type {!WebInspector.Target} */ (WebInspector.targe
tManager.mainTarget()); |
| 148 this._populateResourceTree(); | 148 this._populateResourceTree(); |
| 149 this._populateDOMStorageTree(); | 149 this._populateDOMStorageTree(); |
| 150 this._populateApplicationCacheTree(target); | 150 this._populateApplicationCacheTree(target); |
| 151 this.indexedDBListTreeElement._initialize(); | 151 this.indexedDBListTreeElement._initialize(); |
| 152 if (WebInspector.experimentsSettings.fileSystemInspection.isEnabled(
)) | 152 if (WebInspector.experimentsSettings.fileSystemInspection.isEnabled(
)) |
| 153 this.fileSystemListTreeElement._initialize(); | 153 this.fileSystemListTreeElement._initialize(); |
| 154 this._initDefaultSelection(); | 154 this._initDefaultSelection(); |
| 155 this._initialized = true; | 155 this._initialized = true; |
| 156 } | 156 } |
| 157 }, | 157 }, |
| (...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 * @param {string} settingsKey | 932 * @param {string} settingsKey |
| 933 * @param {?Array.<string>=} iconClasses | 933 * @param {?Array.<string>=} iconClasses |
| 934 * @param {boolean=} noIcon | 934 * @param {boolean=} noIcon |
| 935 */ | 935 */ |
| 936 WebInspector.StorageCategoryTreeElement = function(storagePanel, categoryName, s
ettingsKey, iconClasses, noIcon) | 936 WebInspector.StorageCategoryTreeElement = function(storagePanel, categoryName, s
ettingsKey, iconClasses, noIcon) |
| 937 { | 937 { |
| 938 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, categoryN
ame, iconClasses, false, noIcon); | 938 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, categoryN
ame, iconClasses, false, noIcon); |
| 939 this._expandedSettingKey = "resources" + settingsKey + "Expanded"; | 939 this._expandedSettingKey = "resources" + settingsKey + "Expanded"; |
| 940 WebInspector.settings[this._expandedSettingKey] = WebInspector.settings.crea
teSetting(this._expandedSettingKey, settingsKey === "Frames"); | 940 WebInspector.settings[this._expandedSettingKey] = WebInspector.settings.crea
teSetting(this._expandedSettingKey, settingsKey === "Frames"); |
| 941 this._categoryName = categoryName; | 941 this._categoryName = categoryName; |
| 942 this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManag
er.activeTarget()); | 942 this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManag
er.mainTarget()); |
| 943 } | 943 } |
| 944 | 944 |
| 945 WebInspector.StorageCategoryTreeElement.prototype = { | 945 WebInspector.StorageCategoryTreeElement.prototype = { |
| 946 /** | 946 /** |
| 947 * @return {!WebInspector.Target} | 947 * @return {!WebInspector.Target} |
| 948 */ | 948 */ |
| 949 target: function() | 949 target: function() |
| 950 { | 950 { |
| 951 return this._target; | 951 return this._target; |
| 952 }, | 952 }, |
| (...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2104 } | 2104 } |
| 2105 | 2105 |
| 2106 WebInspector.StorageCategoryView.prototype = { | 2106 WebInspector.StorageCategoryView.prototype = { |
| 2107 setText: function(text) | 2107 setText: function(text) |
| 2108 { | 2108 { |
| 2109 this._emptyView.text = text; | 2109 this._emptyView.text = text; |
| 2110 }, | 2110 }, |
| 2111 | 2111 |
| 2112 __proto__: WebInspector.VBox.prototype | 2112 __proto__: WebInspector.VBox.prototype |
| 2113 } | 2113 } |
| OLD | NEW |