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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 this._uiSourceCode.removeEventListener( | 418 this._uiSourceCode.removeEventListener( |
419 Workspace.UISourceCode.Events.WorkingCopyCommitted, this._workingCopyCom
mitted, this); | 419 Workspace.UISourceCode.Events.WorkingCopyCommitted, this._workingCopyCom
mitted, this); |
420 } | 420 } |
421 | 421 |
422 /** | 422 /** |
423 * @param {string} sourceMapURL | 423 * @param {string} sourceMapURL |
424 */ | 424 */ |
425 addSourceMapURL(sourceMapURL) { | 425 addSourceMapURL(sourceMapURL) { |
426 if (!this._script) | 426 if (!this._script) |
427 return; | 427 return; |
428 this._script.addSourceMapURL(sourceMapURL); | 428 this._script.debuggerModel.setSourceMapURL(this._script, sourceMapURL); |
429 } | 429 } |
430 | 430 |
431 /** | 431 /** |
432 * @return {boolean} | 432 * @return {boolean} |
433 */ | 433 */ |
434 hasSourceMapURL() { | 434 hasSourceMapURL() { |
435 return this._script && !!this._script.sourceMapURL; | 435 return this._script && !!this._script.sourceMapURL; |
436 } | 436 } |
437 }; | 437 }; |
438 | 438 |
439 /** @enum {symbol} */ | 439 /** @enum {symbol} */ |
440 Bindings.ResourceScriptFile.Events = { | 440 Bindings.ResourceScriptFile.Events = { |
441 DidMergeToVM: Symbol('DidMergeToVM'), | 441 DidMergeToVM: Symbol('DidMergeToVM'), |
442 DidDivergeFromVM: Symbol('DidDivergeFromVM'), | 442 DidDivergeFromVM: Symbol('DidDivergeFromVM'), |
443 }; | 443 }; |
OLD | NEW |