| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 /** @type {!Map.<string, !WebInspector.SourceMap>} */ | 58 /** @type {!Map.<string, !WebInspector.SourceMap>} */ |
| 59 this._sourceMapForURL = new Map(); | 59 this._sourceMapForURL = new Map(); |
| 60 /** @type {!Map.<string, !WebInspector.UISourceCode>} */ | 60 /** @type {!Map.<string, !WebInspector.UISourceCode>} */ |
| 61 this._stubUISourceCodes = new Map(); | 61 this._stubUISourceCodes = new Map(); |
| 62 | 62 |
| 63 this._stubProjectID = "compiler-script-project"; | 63 this._stubProjectID = "compiler-script-project"; |
| 64 this._stubProjectDelegate = new WebInspector.ContentProviderBasedProjectDele
gate(this._workspace, this._stubProjectID, WebInspector.projectTypes.Service); | 64 this._stubProjectDelegate = new WebInspector.ContentProviderBasedProjectDele
gate(this._workspace, this._stubProjectID, WebInspector.projectTypes.Service); |
| 65 debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.GlobalObjec
tCleared, this._debuggerReset, this); | 65 debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.GlobalObjec
tCleared, this._debuggerReset, this); |
| 66 } | 66 } |
| 67 | 67 |
| 68 WebInspector.CompilerScriptMapping.StubProjectID = "compiler-script-project"; |
| 69 |
| 68 WebInspector.CompilerScriptMapping.prototype = { | 70 WebInspector.CompilerScriptMapping.prototype = { |
| 69 /** | 71 /** |
| 70 * @param {!WebInspector.DebuggerModel.Location} rawLocation | 72 * @param {!WebInspector.DebuggerModel.Location} rawLocation |
| 71 * @return {boolean} | 73 * @return {boolean} |
| 72 */ | 74 */ |
| 73 mapsToSourceCode: function (rawLocation) { | 75 mapsToSourceCode: function (rawLocation) { |
| 74 var sourceMap = this._sourceMapForScriptId[rawLocation.scriptId]; | 76 var sourceMap = this._sourceMapForScriptId[rawLocation.scriptId]; |
| 75 if (!sourceMap) { | 77 if (!sourceMap) { |
| 76 return true; | 78 return true; |
| 77 } | 79 } |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 this._sourceMapForScriptId = {}; | 361 this._sourceMapForScriptId = {}; |
| 360 this._scriptForSourceMap.clear(); | 362 this._scriptForSourceMap.clear(); |
| 361 this._sourceMapForURL.clear(); | 363 this._sourceMapForURL.clear(); |
| 362 }, | 364 }, |
| 363 | 365 |
| 364 dispose: function() | 366 dispose: function() |
| 365 { | 367 { |
| 366 this._workspace.removeEventListener(WebInspector.Workspace.Events.UISour
ceCodeAdded, this._uiSourceCodeAddedToWorkspace, this); | 368 this._workspace.removeEventListener(WebInspector.Workspace.Events.UISour
ceCodeAdded, this._uiSourceCodeAddedToWorkspace, this); |
| 367 } | 369 } |
| 368 } | 370 } |
| OLD | NEW |