| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 sourceURLs: function() { }, | 101 sourceURLs: function() { }, |
| 102 | 102 |
| 103 /** | 103 /** |
| 104 * @param {string} sourceURL | 104 * @param {string} sourceURL |
| 105 * @param {!WebInspector.ResourceType} contentType | 105 * @param {!WebInspector.ResourceType} contentType |
| 106 * @return {!WebInspector.ContentProvider} | 106 * @return {!WebInspector.ContentProvider} |
| 107 */ | 107 */ |
| 108 sourceContentProvider: function(sourceURL, contentType) { }, | 108 sourceContentProvider: function(sourceURL, contentType) { }, |
| 109 | 109 |
| 110 /** | 110 /** |
| 111 * @param {string} sourceURL |
| 112 * @return {?string} |
| 113 */ |
| 114 embeddedContentByURL: function(sourceURL) { }, |
| 115 |
| 116 /** |
| 111 * @param {number} lineNumber in compiled resource | 117 * @param {number} lineNumber in compiled resource |
| 112 * @param {number} columnNumber in compiled resource | 118 * @param {number} columnNumber in compiled resource |
| 113 * @return {?WebInspector.SourceMapEntry} | 119 * @return {?WebInspector.SourceMapEntry} |
| 114 */ | 120 */ |
| 115 findEntry: function(lineNumber, columnNumber) { }, | 121 findEntry: function(lineNumber, columnNumber) { }, |
| 116 | 122 |
| 117 /** | 123 /** |
| 118 * @return {boolean} | 124 * @return {boolean} |
| 119 */ | 125 */ |
| 120 editable: function() { }, | 126 editable: function() { }, |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 sourceContentProvider: function(sourceURL, contentType) | 264 sourceContentProvider: function(sourceURL, contentType) |
| 259 { | 265 { |
| 260 var info = this._sourceInfos.get(sourceURL); | 266 var info = this._sourceInfos.get(sourceURL); |
| 261 if (info.content) | 267 if (info.content) |
| 262 return WebInspector.StaticContentProvider.fromString(sourceURL, cont
entType, info.content); | 268 return WebInspector.StaticContentProvider.fromString(sourceURL, cont
entType, info.content); |
| 263 return new WebInspector.CompilerSourceMappingContentProvider(sourceURL,
contentType); | 269 return new WebInspector.CompilerSourceMappingContentProvider(sourceURL,
contentType); |
| 264 }, | 270 }, |
| 265 | 271 |
| 266 /** | 272 /** |
| 267 * @override | 273 * @override |
| 274 * @param {string} sourceURL |
| 275 * @return {?string} |
| 276 */ |
| 277 embeddedContentByURL: function(sourceURL) |
| 278 { |
| 279 if (!this._sourceInfos.has(sourceURL)) |
| 280 return null; |
| 281 return this._sourceInfos.get(sourceURL).content; |
| 282 }, |
| 283 |
| 284 /** |
| 285 * @override |
| 268 * @return {boolean} | 286 * @return {boolean} |
| 269 */ | 287 */ |
| 270 editable: function() | 288 editable: function() |
| 271 { | 289 { |
| 272 return false; | 290 return false; |
| 273 }, | 291 }, |
| 274 | 292 |
| 275 /** | 293 /** |
| 276 * @override | 294 * @override |
| 277 * @param {!Array<!WebInspector.TextRange>} ranges | 295 * @param {!Array<!WebInspector.TextRange>} ranges |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 * @constructor | 588 * @constructor |
| 571 * @param {?string} content | 589 * @param {?string} content |
| 572 * @param {?Array<!WebInspector.SourceMapEntry>} reverseMappings | 590 * @param {?Array<!WebInspector.SourceMapEntry>} reverseMappings |
| 573 */ | 591 */ |
| 574 WebInspector.TextSourceMap.SourceInfo = function(content, reverseMappings) { | 592 WebInspector.TextSourceMap.SourceInfo = function(content, reverseMappings) { |
| 575 this.content = content; | 593 this.content = content; |
| 576 this.reverseMappings = reverseMappings; | 594 this.reverseMappings = reverseMappings; |
| 577 } | 595 } |
| 578 | 596 |
| 579 WebInspector.TextSourceMap._sourcesListSymbol = Symbol("sourcesList"); | 597 WebInspector.TextSourceMap._sourcesListSymbol = Symbol("sourcesList"); |
| OLD | NEW |