| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) IBM Corp. 2009 All rights reserved. | 3 * Copyright (C) IBM Corp. 2009 All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 { | 60 { |
| 61 if (resource.type.isTextType()) | 61 if (resource.type.isTextType()) |
| 62 return true; | 62 return true; |
| 63 if (resource.type === WebInspector.resourceTypes.Other) | 63 if (resource.type === WebInspector.resourceTypes.Other) |
| 64 return !!resource.content && !resource.contentEncoded; | 64 return !!resource.content && !resource.contentEncoded; |
| 65 return false; | 65 return false; |
| 66 } | 66 } |
| 67 | 67 |
| 68 /** | 68 /** |
| 69 * @param {!WebInspector.Resource} resource | 69 * @param {!WebInspector.Resource} resource |
| 70 * @return {!WebInspector.ResourceView} |
| 70 */ | 71 */ |
| 71 WebInspector.ResourceView.nonSourceViewForResource = function(resource) | 72 WebInspector.ResourceView.nonSourceViewForResource = function(resource) |
| 72 { | 73 { |
| 73 switch (resource.type) { | 74 switch (resource.type) { |
| 74 case WebInspector.resourceTypes.Image: | 75 case WebInspector.resourceTypes.Image: |
| 75 return new WebInspector.ImageView(resource); | 76 return new WebInspector.ImageView(resource); |
| 76 case WebInspector.resourceTypes.Font: | 77 case WebInspector.resourceTypes.Font: |
| 77 return new WebInspector.FontView(resource); | 78 return new WebInspector.FontView(resource); |
| 78 default: | 79 default: |
| 79 return new WebInspector.ResourceView(resource); | 80 return new WebInspector.ResourceView(resource); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 /** | 131 /** |
| 131 * @param {?string} content | 132 * @param {?string} content |
| 132 */ | 133 */ |
| 133 _contentLoaded: function(content) | 134 _contentLoaded: function(content) |
| 134 { | 135 { |
| 135 this._content.textContent = content; | 136 this._content.textContent = content; |
| 136 }, | 137 }, |
| 137 | 138 |
| 138 __proto__: WebInspector.VBox.prototype | 139 __proto__: WebInspector.VBox.prototype |
| 139 } | 140 } |
| OLD | NEW |