| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @unrestricted | 32 * @unrestricted |
| 33 */ | 33 */ |
| 34 Sources.JavaScriptSourceFrame = class extends Sources.UISourceCodeFrame { | 34 Sources.JavaScriptSourceFrame = class extends SourceFrame.UISourceCodeFrame { |
| 35 /** | 35 /** |
| 36 * @param {!Workspace.UISourceCode} uiSourceCode | 36 * @param {!Workspace.UISourceCode} uiSourceCode |
| 37 */ | 37 */ |
| 38 constructor(uiSourceCode) { | 38 constructor(uiSourceCode) { |
| 39 super(uiSourceCode); | 39 super(uiSourceCode); |
| 40 this._debuggerSourceCode = uiSourceCode; | 40 this._debuggerSourceCode = uiSourceCode; |
| 41 | 41 |
| 42 this._scriptsPanel = Sources.SourcesPanel.instance(); | 42 this._scriptsPanel = Sources.SourcesPanel.instance(); |
| 43 this._breakpointManager = Bindings.breakpointManager; | 43 this._breakpointManager = Bindings.breakpointManager; |
| 44 if (uiSourceCode.project().type() === Workspace.projectTypes.Debugger) | 44 if (uiSourceCode.project().type() === Workspace.projectTypes.Debugger) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 74 /** @type {!Map.<!SDK.Target, !Bindings.ResourceScriptFile>}*/ | 74 /** @type {!Map.<!SDK.Target, !Bindings.ResourceScriptFile>}*/ |
| 75 this._scriptFileForTarget = new Map(); | 75 this._scriptFileForTarget = new Map(); |
| 76 | 76 |
| 77 Common.moduleSetting('skipStackFramesPattern').addChangeListener(this._showB
lackboxInfobarIfNeeded, this); | 77 Common.moduleSetting('skipStackFramesPattern').addChangeListener(this._showB
lackboxInfobarIfNeeded, this); |
| 78 Common.moduleSetting('skipContentScripts').addChangeListener(this._showBlack
boxInfobarIfNeeded, this); | 78 Common.moduleSetting('skipContentScripts').addChangeListener(this._showBlack
boxInfobarIfNeeded, this); |
| 79 | 79 |
| 80 /** @type {!Map.<number, !Element>} */ | 80 /** @type {!Map.<number, !Element>} */ |
| 81 this._valueWidgets = new Map(); | 81 this._valueWidgets = new Map(); |
| 82 this.onBindingChanged(); | 82 this.onBindingChanged(); |
| 83 Bindings.debuggerWorkspaceBinding.addEventListener( | 83 Bindings.debuggerWorkspaceBinding.addEventListener( |
| 84 Bindings.DebuggerWorkspaceBinding.Events.SourceMappingChanged, this._o
nSourceMappingChanged, this); | 84 Bindings.DebuggerWorkspaceBinding.Events.SourceMappingChanged, this._onS
ourceMappingChanged, this); |
| 85 } | 85 } |
| 86 | 86 |
| 87 /** | 87 /** |
| 88 * @override | 88 * @override |
| 89 * @return {!Array<!UI.ToolbarItem>} | 89 * @return {!Array<!UI.ToolbarItem>} |
| 90 */ | 90 */ |
| 91 syncToolbarItems() { | 91 syncToolbarItems() { |
| 92 var result = super.syncToolbarItems(); | 92 var result = super.syncToolbarItems(); |
| 93 var originURL = Bindings.CompilerScriptMapping.uiSourceCodeOrigin(this._debu
ggerSourceCode); | 93 var originURL = Bindings.CompilerScriptMapping.uiSourceCodeOrigin(this._debu
ggerSourceCode); |
| 94 if (originURL) { | 94 if (originURL) { |
| (...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 * @param {boolean} enabled | 1287 * @param {boolean} enabled |
| 1288 */ | 1288 */ |
| 1289 _breakpointWasSetForTest(lineNumber, columnNumber, condition, enabled) { | 1289 _breakpointWasSetForTest(lineNumber, columnNumber, condition, enabled) { |
| 1290 } | 1290 } |
| 1291 | 1291 |
| 1292 /** | 1292 /** |
| 1293 * @override | 1293 * @override |
| 1294 */ | 1294 */ |
| 1295 dispose() { | 1295 dispose() { |
| 1296 Bindings.debuggerWorkspaceBinding.removeEventListener( | 1296 Bindings.debuggerWorkspaceBinding.removeEventListener( |
| 1297 Bindings.DebuggerWorkspaceBinding.Events.SourceMappingChanged, this._o
nSourceMappingChanged, this); | 1297 Bindings.DebuggerWorkspaceBinding.Events.SourceMappingChanged, this._onS
ourceMappingChanged, this); |
| 1298 this._breakpointManager.removeEventListener( | 1298 this._breakpointManager.removeEventListener( |
| 1299 Bindings.BreakpointManager.Events.BreakpointAdded, this._breakpointAdded
, this); | 1299 Bindings.BreakpointManager.Events.BreakpointAdded, this._breakpointAdded
, this); |
| 1300 this._breakpointManager.removeEventListener( | 1300 this._breakpointManager.removeEventListener( |
| 1301 Bindings.BreakpointManager.Events.BreakpointRemoved, this._breakpointRem
oved, this); | 1301 Bindings.BreakpointManager.Events.BreakpointRemoved, this._breakpointRem
oved, this); |
| 1302 this.uiSourceCode().removeEventListener( | 1302 this.uiSourceCode().removeEventListener( |
| 1303 Workspace.UISourceCode.Events.WorkingCopyChanged, this._workingCopyChang
ed, this); | 1303 Workspace.UISourceCode.Events.WorkingCopyChanged, this._workingCopyChang
ed, this); |
| 1304 this.uiSourceCode().removeEventListener( | 1304 this.uiSourceCode().removeEventListener( |
| 1305 Workspace.UISourceCode.Events.WorkingCopyCommitted, this._workingCopyCom
mitted, this); | 1305 Workspace.UISourceCode.Events.WorkingCopyCommitted, this._workingCopyCom
mitted, this); |
| 1306 this.uiSourceCode().removeEventListener( | 1306 this.uiSourceCode().removeEventListener( |
| 1307 Workspace.UISourceCode.Events.TitleChanged, this._showBlackboxInfobarIfN
eeded, this); | 1307 Workspace.UISourceCode.Events.TitleChanged, this._showBlackboxInfobarIfN
eeded, this); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 hide() { | 1372 hide() { |
| 1373 if (!this.bookmark) | 1373 if (!this.bookmark) |
| 1374 return; | 1374 return; |
| 1375 this.bookmark.clear(); | 1375 this.bookmark.clear(); |
| 1376 this.bookmark = null; | 1376 this.bookmark = null; |
| 1377 } | 1377 } |
| 1378 }; | 1378 }; |
| 1379 | 1379 |
| 1380 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book
mark'); | 1380 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book
mark'); |
| 1381 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo
l('element'); | 1381 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo
l('element'); |
| OLD | NEW |