| 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 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 * @param {!WebInspector.ResourcesPanel} storagePanel | 1177 * @param {!WebInspector.ResourcesPanel} storagePanel |
| 1178 * @param {!WebInspector.Resource} resource | 1178 * @param {!WebInspector.Resource} resource |
| 1179 */ | 1179 */ |
| 1180 WebInspector.FrameResourceTreeElement = function(storagePanel, resource) | 1180 WebInspector.FrameResourceTreeElement = function(storagePanel, resource) |
| 1181 { | 1181 { |
| 1182 WebInspector.BaseStorageTreeElement.call(this, storagePanel, resource.displa
yName, ["resource-sidebar-tree-item", "resources-type-" + resource.resourceType(
).name()]); | 1182 WebInspector.BaseStorageTreeElement.call(this, storagePanel, resource.displa
yName, ["resource-sidebar-tree-item", "resources-type-" + resource.resourceType(
).name()]); |
| 1183 /** @type {!WebInspector.Resource} */ | 1183 /** @type {!WebInspector.Resource} */ |
| 1184 this._resource = resource; | 1184 this._resource = resource; |
| 1185 this._resource.addEventListener(WebInspector.Resource.Events.MessageAdded, t
his._consoleMessageAdded, this); | 1185 this._resource.addEventListener(WebInspector.Resource.Events.MessageAdded, t
his._consoleMessageAdded, this); |
| 1186 this._resource.addEventListener(WebInspector.Resource.Events.MessagesCleared
, this._consoleMessagesCleared, this); | 1186 this._resource.addEventListener(WebInspector.Resource.Events.MessagesCleared
, this._consoleMessagesCleared, this); |
| 1187 this.tooltip = resource.url; | 1187 WebInspector.Tooltip.install(this._listItemNode, resource.url); |
| 1188 this._resource[WebInspector.FrameResourceTreeElement._symbol] = this; | 1188 this._resource[WebInspector.FrameResourceTreeElement._symbol] = this; |
| 1189 } | 1189 } |
| 1190 | 1190 |
| 1191 WebInspector.FrameResourceTreeElement._symbol = Symbol("treeElement"); | 1191 WebInspector.FrameResourceTreeElement._symbol = Symbol("treeElement"); |
| 1192 | 1192 |
| 1193 WebInspector.FrameResourceTreeElement.prototype = { | 1193 WebInspector.FrameResourceTreeElement.prototype = { |
| 1194 get itemURL() | 1194 get itemURL() |
| 1195 { | 1195 { |
| 1196 return this._resource.url; | 1196 return this._resource.url; |
| 1197 }, | 1197 }, |
| (...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2415 WebInspector.ResourcesPanelFactory.prototype = { | 2415 WebInspector.ResourcesPanelFactory.prototype = { |
| 2416 /** | 2416 /** |
| 2417 * @override | 2417 * @override |
| 2418 * @return {!WebInspector.Panel} | 2418 * @return {!WebInspector.Panel} |
| 2419 */ | 2419 */ |
| 2420 createPanel: function() | 2420 createPanel: function() |
| 2421 { | 2421 { |
| 2422 return WebInspector.ResourcesPanel._instance(); | 2422 return WebInspector.ResourcesPanel._instance(); |
| 2423 } | 2423 } |
| 2424 } | 2424 } |
| OLD | NEW |