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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 reveal: function(resource, lineNumber) | 797 reveal: function(resource, lineNumber) |
798 { | 798 { |
799 if (resource instanceof WebInspector.Resource) | 799 if (resource instanceof WebInspector.Resource) |
800 /** @type {!WebInspector.ResourcesPanel} */ (WebInspector.inspectorV
iew.showPanel("resources")).showResource(resource, lineNumber); | 800 /** @type {!WebInspector.ResourcesPanel} */ (WebInspector.inspectorV
iew.showPanel("resources")).showResource(resource, lineNumber); |
801 } | 801 } |
802 } | 802 } |
803 | 803 |
804 /** | 804 /** |
805 * @constructor | 805 * @constructor |
806 * @extends {TreeElement} | 806 * @extends {TreeElement} |
| 807 * @param {!WebInspector.ResourcesPanel} storagePanel |
| 808 * @param {?Object} representedObject |
| 809 * @param {string} title |
| 810 * @param {?Array.<string>=} iconClasses |
807 * @param {boolean=} hasChildren | 811 * @param {boolean=} hasChildren |
808 * @param {boolean=} noIcon | 812 * @param {boolean=} noIcon |
809 */ | 813 */ |
810 WebInspector.BaseStorageTreeElement = function(storagePanel, representedObject,
title, iconClasses, hasChildren, noIcon) | 814 WebInspector.BaseStorageTreeElement = function(storagePanel, representedObject,
title, iconClasses, hasChildren, noIcon) |
811 { | 815 { |
812 TreeElement.call(this, "", representedObject, hasChildren); | 816 TreeElement.call(this, "", representedObject, hasChildren); |
813 this._storagePanel = storagePanel; | 817 this._storagePanel = storagePanel; |
814 this._titleText = title; | 818 this._titleText = title; |
815 this._iconClasses = iconClasses; | 819 this._iconClasses = iconClasses; |
816 this._noIcon = noIcon; | 820 this._noIcon = noIcon; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 this._subtitleText = subtitleText; | 934 this._subtitleText = subtitleText; |
931 this._updateSubtitle(); | 935 this._updateSubtitle(); |
932 }, | 936 }, |
933 | 937 |
934 __proto__: TreeElement.prototype | 938 __proto__: TreeElement.prototype |
935 } | 939 } |
936 | 940 |
937 /** | 941 /** |
938 * @constructor | 942 * @constructor |
939 * @extends {WebInspector.BaseStorageTreeElement} | 943 * @extends {WebInspector.BaseStorageTreeElement} |
| 944 * @param {!WebInspector.ResourcesPanel} storagePanel |
| 945 * @param {string} categoryName |
| 946 * @param {string} settingsKey |
| 947 * @param {?Array.<string>=} iconClasses |
940 * @param {boolean=} noIcon | 948 * @param {boolean=} noIcon |
941 */ | 949 */ |
942 WebInspector.StorageCategoryTreeElement = function(storagePanel, categoryName, s
ettingsKey, iconClasses, noIcon) | 950 WebInspector.StorageCategoryTreeElement = function(storagePanel, categoryName, s
ettingsKey, iconClasses, noIcon) |
943 { | 951 { |
944 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, categoryN
ame, iconClasses, false, noIcon); | 952 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, categoryN
ame, iconClasses, false, noIcon); |
945 this._expandedSettingKey = "resources" + settingsKey + "Expanded"; | 953 this._expandedSettingKey = "resources" + settingsKey + "Expanded"; |
946 WebInspector.settings[this._expandedSettingKey] = WebInspector.settings.crea
teSetting(this._expandedSettingKey, settingsKey === "Frames"); | 954 WebInspector.settings[this._expandedSettingKey] = WebInspector.settings.crea
teSetting(this._expandedSettingKey, settingsKey === "Frames"); |
947 this._categoryName = categoryName; | 955 this._categoryName = categoryName; |
948 this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManag
er.activeTarget()); | 956 this._target = /** @type {!WebInspector.Target} */ (WebInspector.targetManag
er.activeTarget()); |
949 } | 957 } |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 } | 1296 } |
1289 return this._sourceView; | 1297 return this._sourceView; |
1290 }, | 1298 }, |
1291 | 1299 |
1292 __proto__: WebInspector.BaseStorageTreeElement.prototype | 1300 __proto__: WebInspector.BaseStorageTreeElement.prototype |
1293 } | 1301 } |
1294 | 1302 |
1295 /** | 1303 /** |
1296 * @constructor | 1304 * @constructor |
1297 * @extends {WebInspector.BaseStorageTreeElement} | 1305 * @extends {WebInspector.BaseStorageTreeElement} |
| 1306 * @param {!WebInspector.ResourcesPanel} storagePanel |
1298 * @param {!WebInspector.Database} database | 1307 * @param {!WebInspector.Database} database |
1299 */ | 1308 */ |
1300 WebInspector.DatabaseTreeElement = function(storagePanel, database) | 1309 WebInspector.DatabaseTreeElement = function(storagePanel, database) |
1301 { | 1310 { |
1302 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, database.
name, ["database-storage-tree-item"], true); | 1311 WebInspector.BaseStorageTreeElement.call(this, storagePanel, null, database.
name, ["database-storage-tree-item"], true); |
1303 this._database = database; | 1312 this._database = database; |
1304 } | 1313 } |
1305 | 1314 |
1306 WebInspector.DatabaseTreeElement.prototype = { | 1315 WebInspector.DatabaseTreeElement.prototype = { |
1307 get itemURL() | 1316 get itemURL() |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2115 } | 2124 } |
2116 | 2125 |
2117 WebInspector.StorageCategoryView.prototype = { | 2126 WebInspector.StorageCategoryView.prototype = { |
2118 setText: function(text) | 2127 setText: function(text) |
2119 { | 2128 { |
2120 this._emptyView.text = text; | 2129 this._emptyView.text = text; |
2121 }, | 2130 }, |
2122 | 2131 |
2123 __proto__: WebInspector.VBox.prototype | 2132 __proto__: WebInspector.VBox.prototype |
2124 } | 2133 } |
OLD | NEW |