| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @implements {WebInspector.ContentProvider} | 7 * @implements {WebInspector.ContentProvider} |
| 8 * @param {!WebInspector.CSSModel} cssModel | 8 * @param {!WebInspector.CSSModel} cssModel |
| 9 * @param {!CSSAgent.CSSStyleSheetHeader} payload | 9 * @param {!CSSAgent.CSSStyleSheetHeader} payload |
| 10 */ | 10 */ |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 this._originalContentProvider = new WebInspector.StaticContentProvid
er(this.contentURL(), this.contentType(), lazyContent); | 37 this._originalContentProvider = new WebInspector.StaticContentProvid
er(this.contentURL(), this.contentType(), lazyContent); |
| 38 } | 38 } |
| 39 return this._originalContentProvider; | 39 return this._originalContentProvider; |
| 40 }, | 40 }, |
| 41 | 41 |
| 42 /** | 42 /** |
| 43 * @param {string=} sourceMapURL | 43 * @param {string=} sourceMapURL |
| 44 */ | 44 */ |
| 45 setSourceMapURL: function(sourceMapURL) | 45 setSourceMapURL: function(sourceMapURL) |
| 46 { | 46 { |
| 47 var completeSourceMapURL = this.sourceURL && sourceMapURL ? WebInspector
.ParsedURL.completeURL(this.sourceURL, sourceMapURL) : null; | 47 var completeSourceMapURL = this.sourceURL && sourceMapURL ? WebInspector
.ParsedURL.completeURL(this.sourceURL, sourceMapURL) : sourceMapURL; |
| 48 this.sourceMapURL = completeSourceMapURL; | 48 this.sourceMapURL = completeSourceMapURL; |
| 49 }, | 49 }, |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * @return {!WebInspector.Target} | 52 * @return {!WebInspector.Target} |
| 53 */ | 53 */ |
| 54 target: function() | 54 target: function() |
| 55 { | 55 { |
| 56 return this._cssModel.target(); | 56 return this._cssModel.target(); |
| 57 }, | 57 }, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 */ | 213 */ |
| 214 function performSearch(content) | 214 function performSearch(content) |
| 215 { | 215 { |
| 216 var searchResults = content ? WebInspector.ContentProvider.performSe
archInContent(content, query, caseSensitive, isRegex) : []; | 216 var searchResults = content ? WebInspector.ContentProvider.performSe
archInContent(content, query, caseSensitive, isRegex) : []; |
| 217 callback(searchResults); | 217 callback(searchResults); |
| 218 } | 218 } |
| 219 | 219 |
| 220 this.requestContent().then(performSearch); | 220 this.requestContent().then(performSearch); |
| 221 } | 221 } |
| 222 } | 222 } |
| OLD | NEW |