| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 */ | 239 */ |
| 240 target: function() { return null; }, | 240 target: function() { return null; }, |
| 241 } | 241 } |
| 242 | 242 |
| 243 /** | 243 /** |
| 244 * @constructor | 244 * @constructor |
| 245 * @implements {WebInspector.ScriptFile} | 245 * @implements {WebInspector.ScriptFile} |
| 246 * @extends {WebInspector.Object} | 246 * @extends {WebInspector.Object} |
| 247 * @param {!WebInspector.ResourceScriptMapping} resourceScriptMapping | 247 * @param {!WebInspector.ResourceScriptMapping} resourceScriptMapping |
| 248 * @param {!WebInspector.UISourceCode} uiSourceCode | 248 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 249 * @param {!Array.<!WebInspector.Script>} scripts |
| 249 */ | 250 */ |
| 250 WebInspector.ResourceScriptFile = function(resourceScriptMapping, uiSourceCode,
scripts) | 251 WebInspector.ResourceScriptFile = function(resourceScriptMapping, uiSourceCode,
scripts) |
| 251 { | 252 { |
| 252 console.assert(scripts.length); | 253 console.assert(scripts.length); |
| 253 | 254 |
| 254 WebInspector.ScriptFile.call(this); | 255 WebInspector.ScriptFile.call(this); |
| 255 this._resourceScriptMapping = resourceScriptMapping; | 256 this._resourceScriptMapping = resourceScriptMapping; |
| 256 this._uiSourceCode = uiSourceCode; | 257 this._uiSourceCode = uiSourceCode; |
| 257 | 258 |
| 258 if (this._uiSourceCode.contentType() === WebInspector.resourceTypes.Script) | 259 if (this._uiSourceCode.contentType() === WebInspector.resourceTypes.Script) |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 return this._script.target(); | 400 return this._script.target(); |
| 400 }, | 401 }, |
| 401 | 402 |
| 402 dispose: function() | 403 dispose: function() |
| 403 { | 404 { |
| 404 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); | 405 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); |
| 405 }, | 406 }, |
| 406 | 407 |
| 407 __proto__: WebInspector.Object.prototype | 408 __proto__: WebInspector.Object.prototype |
| 408 } | 409 } |
| OLD | NEW |