| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 /** | 31 /** |
| 32 * @constructor | 32 * @constructor |
| 33 * @implements {WebInspector.ContentProvider} | 33 * @implements {WebInspector.ContentProvider} |
| 34 * @param {string} sourceURL | 34 * @param {string} sourceURL |
| 35 * @param {!WebInspector.ResourceType} contentType | 35 * @param {!WebInspector.ResourceType} contentType |
| 36 */ | 36 */ |
| 37 WebInspector.CompilerSourceMappingContentProvider = function(sourceURL, contentT
ype) | 37 WebInspector.CompilerSourceMappingContentProvider = function(sourceURL, contentT
ype) |
| 38 { | 38 { |
| 39 this._sourceURL = sourceURL; | 39 this._sourceURL = sourceURL; |
| 40 this._contentType = contentType; | 40 this._contentType = contentType; |
| 41 } | 41 }; |
| 42 | 42 |
| 43 WebInspector.CompilerSourceMappingContentProvider.prototype = { | 43 WebInspector.CompilerSourceMappingContentProvider.prototype = { |
| 44 /** | 44 /** |
| 45 * @override | 45 * @override |
| 46 * @return {string} | 46 * @return {string} |
| 47 */ | 47 */ |
| 48 contentURL: function() | 48 contentURL: function() |
| 49 { | 49 { |
| 50 return this._sourceURL; | 50 return this._sourceURL; |
| 51 }, | 51 }, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 function contentLoaded(content) | 105 function contentLoaded(content) |
| 106 { | 106 { |
| 107 if (typeof content !== "string") { | 107 if (typeof content !== "string") { |
| 108 callback([]); | 108 callback([]); |
| 109 return; | 109 return; |
| 110 } | 110 } |
| 111 | 111 |
| 112 callback(WebInspector.ContentProvider.performSearchInContent(content
, query, caseSensitive, isRegex)); | 112 callback(WebInspector.ContentProvider.performSearchInContent(content
, query, caseSensitive, isRegex)); |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 } | 115 }; |
| OLD | NEW |