| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 /** | 252 /** |
| 253 * @override | 253 * @override |
| 254 * @param {string} sourceURL | 254 * @param {string} sourceURL |
| 255 * @param {!WebInspector.ResourceType} contentType | 255 * @param {!WebInspector.ResourceType} contentType |
| 256 * @return {!WebInspector.ContentProvider} | 256 * @return {!WebInspector.ContentProvider} |
| 257 */ | 257 */ |
| 258 sourceContentProvider: function(sourceURL, contentType) | 258 sourceContentProvider: function(sourceURL, contentType) |
| 259 { | 259 { |
| 260 var sourceContent = this._sourceContentByURL[sourceURL]; | 260 var sourceContent = this._sourceContentByURL[sourceURL]; |
| 261 if (sourceContent) | 261 if (sourceContent) |
| 262 return new WebInspector.StaticContentProvider(contentType, sourceCon
tent, sourceURL); | 262 return new WebInspector.StaticContentProvider(sourceURL, contentType
, Promise.resolve(sourceContent)); |
| 263 return new WebInspector.CompilerSourceMappingContentProvider(sourceURL,
contentType); | 263 return new WebInspector.CompilerSourceMappingContentProvider(sourceURL,
contentType); |
| 264 }, | 264 }, |
| 265 | 265 |
| 266 /** | 266 /** |
| 267 * @override | 267 * @override |
| 268 * @return {boolean} | 268 * @return {boolean} |
| 269 */ | 269 */ |
| 270 editable: function() | 270 editable: function() |
| 271 { | 271 { |
| 272 return false; | 272 return false; |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 }, | 567 }, |
| 568 | 568 |
| 569 /** | 569 /** |
| 570 * @return {boolean} | 570 * @return {boolean} |
| 571 */ | 571 */ |
| 572 hasNext: function() | 572 hasNext: function() |
| 573 { | 573 { |
| 574 return this._position < this._string.length; | 574 return this._position < this._string.length; |
| 575 } | 575 } |
| 576 } | 576 } |
| OLD | NEW |