| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 } | 638 } |
| 639 | 639 |
| 640 /** | 640 /** |
| 641 * @param {!Workspace.UILocation} uiLocation | 641 * @param {!Workspace.UILocation} uiLocation |
| 642 */ | 642 */ |
| 643 _continueToLocation(uiLocation) { | 643 _continueToLocation(uiLocation) { |
| 644 var executionContext = UI.context.flavor(SDK.ExecutionContext); | 644 var executionContext = UI.context.flavor(SDK.ExecutionContext); |
| 645 if (!executionContext) | 645 if (!executionContext) |
| 646 return; | 646 return; |
| 647 // Always use 0 column. | 647 // Always use 0 column. |
| 648 var rawLocation = | 648 var rawLocations = |
| 649 Bindings.debuggerWorkspaceBinding.uiLocationToRawLocation(uiLocation.uiS
ourceCode, uiLocation.lineNumber, 0); | 649 Bindings.debuggerWorkspaceBinding.uiLocationToRawLocations(uiLocation.ui
SourceCode, uiLocation.lineNumber, 0); |
| 650 if (!rawLocation || rawLocation.debuggerModel !== executionContext.debuggerM
odel) | 650 // TODO(kozyatinskiy): make it possible to continue to multiple locations (w
hichever is hit first). |
| 651 var location = rawLocations.find(location => location.debuggerModel === exec
utionContext.debuggerModel); |
| 652 if (!location) |
| 651 return; | 653 return; |
| 652 if (!this._prepareToResume()) | 654 if (!this._prepareToResume()) |
| 653 return; | 655 return; |
| 654 | 656 |
| 655 rawLocation.continueToLocation(); | 657 location.continueToLocation(); |
| 656 } | 658 } |
| 657 | 659 |
| 658 _toggleBreakpointsActive() { | 660 _toggleBreakpointsActive() { |
| 659 Bindings.breakpointManager.setBreakpointsActive(!Bindings.breakpointManager.
breakpointsActive()); | 661 Bindings.breakpointManager.setBreakpointsActive(!Bindings.breakpointManager.
breakpointsActive()); |
| 660 } | 662 } |
| 661 | 663 |
| 662 _breakpointsActiveStateChanged(event) { | 664 _breakpointsActiveStateChanged(event) { |
| 663 var active = event.data; | 665 var active = event.data; |
| 664 this._toggleBreakpointsActiveAction.setToggled(!active); | 666 this._toggleBreakpointsActiveAction.setToggled(!active); |
| 665 this._sourcesView.toggleBreakpointsActiveState(active); | 667 this._sourcesView.toggleBreakpointsActiveState(active); |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 */ | 1297 */ |
| 1296 willHide() { | 1298 willHide() { |
| 1297 UI.inspectorView.setDrawerMinimized(false); | 1299 UI.inspectorView.setDrawerMinimized(false); |
| 1298 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); | 1300 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); |
| 1299 } | 1301 } |
| 1300 | 1302 |
| 1301 _showViewInWrapper() { | 1303 _showViewInWrapper() { |
| 1302 this._view.show(this.element); | 1304 this._view.show(this.element); |
| 1303 } | 1305 } |
| 1304 }; | 1306 }; |
| OLD | NEW |