OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 /** | 4 /** |
5 * @unrestricted | 5 * @unrestricted |
6 * @implements {SDK.SDKModelObserver<!SDK.DebuggerModel>} | 6 * @implements {SDK.SDKModelObserver<!SDK.DebuggerModel>} |
7 */ | 7 */ |
8 Bindings.DebuggerWorkspaceBinding = class extends Common.Object { | 8 Bindings.DebuggerWorkspaceBinding = class extends Common.Object { |
9 /** | 9 /** |
10 * @param {!SDK.TargetManager} targetManager | 10 * @param {!SDK.TargetManager} targetManager |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 return !!this._compilerMapping.mapsToSourceCode(debuggerPausedDetails.callFr
ames[0].location()); | 363 return !!this._compilerMapping.mapsToSourceCode(debuggerPausedDetails.callFr
ames[0].location()); |
364 } | 364 } |
365 | 365 |
366 /** | 366 /** |
367 * @param {!Common.Event} event | 367 * @param {!Common.Event} event |
368 */ | 368 */ |
369 _parsedScriptSource(event) { | 369 _parsedScriptSource(event) { |
370 var script = /** @type {!SDK.Script} */ (event.data); | 370 var script = /** @type {!SDK.Script} */ (event.data); |
371 this._defaultMapping.addScript(script); | 371 this._defaultMapping.addScript(script); |
372 this._resourceMapping.addScript(script); | 372 this._resourceMapping.addScript(script); |
373 | |
374 if (Common.moduleSetting('jsSourceMapsEnabled').get()) | |
375 this._compilerMapping.addScript(script); | |
376 } | 373 } |
377 | 374 |
378 /** | 375 /** |
379 * @param {!Common.Event} event | 376 * @param {!Common.Event} event |
380 */ | 377 */ |
381 _discardedScriptSource(event) { | 378 _discardedScriptSource(event) { |
382 var script = /** @type {!SDK.Script} */ (event.data); | 379 var script = /** @type {!SDK.Script} */ (event.data); |
383 this._defaultMapping.removeScript(script); | 380 this._defaultMapping.removeScript(script); |
384 } | 381 } |
385 | 382 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 * @param {number} lineNumber | 664 * @param {number} lineNumber |
668 * @return {boolean} | 665 * @return {boolean} |
669 */ | 666 */ |
670 uiLineHasMapping(uiSourceCode, lineNumber) {} | 667 uiLineHasMapping(uiSourceCode, lineNumber) {} |
671 }; | 668 }; |
672 | 669 |
673 /** | 670 /** |
674 * @type {!Bindings.DebuggerWorkspaceBinding} | 671 * @type {!Bindings.DebuggerWorkspaceBinding} |
675 */ | 672 */ |
676 Bindings.debuggerWorkspaceBinding; | 673 Bindings.debuggerWorkspaceBinding; |
OLD | NEW |