| 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 var rawLocation = WebInspector.debuggerWorkspaceBinding.uiLocationToRawL
ocation(executionContext.target(), uiLocation.uiSourceCode, uiLocation.lineNumbe
r, 0); | 685 var rawLocation = WebInspector.debuggerWorkspaceBinding.uiLocationToRawL
ocation(executionContext.target(), uiLocation.uiSourceCode, uiLocation.lineNumbe
r, 0); |
| 686 if (!rawLocation) | 686 if (!rawLocation) |
| 687 return; | 687 return; |
| 688 | 688 |
| 689 if (!this._prepareToResume()) | 689 if (!this._prepareToResume()) |
| 690 return; | 690 return; |
| 691 | 691 |
| 692 rawLocation.continueToLocation(); | 692 rawLocation.continueToLocation(); |
| 693 }, | 693 }, |
| 694 | 694 |
| 695 _toggleBreakpointsClicked: function(event) | 695 _toggleBreakpointsActive: function() |
| 696 { | 696 { |
| 697 WebInspector.breakpointManager.setBreakpointsActive(!WebInspector.breakp
ointManager.breakpointsActive()); | 697 WebInspector.breakpointManager.setBreakpointsActive(!WebInspector.breakp
ointManager.breakpointsActive()); |
| 698 }, | 698 }, |
| 699 | 699 |
| 700 _breakpointsActiveStateChanged: function(event) | 700 _breakpointsActiveStateChanged: function(event) |
| 701 { | 701 { |
| 702 var active = event.data; | 702 var active = event.data; |
| 703 this._toggleBreakpointsButton.setToggled(!active); | 703 this._toggleBreakpointsButton.setToggled(!active); |
| 704 this.sidebarPanes.jsBreakpoints.listElement.classList.toggle("breakpoint
s-list-deactivated", !active); | 704 this.sidebarPanes.jsBreakpoints.listElement.classList.toggle("breakpoint
s-list-deactivated", !active); |
| 705 this._sourcesView.toggleBreakpointsActiveState(active); | 705 this._sourcesView.toggleBreakpointsActiveState(active); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 debugToolbar.appendToolbarItem(this._stepIntoButton); | 746 debugToolbar.appendToolbarItem(this._stepIntoButton); |
| 747 | 747 |
| 748 // Step out. | 748 // Step out. |
| 749 title = WebInspector.UIString("Step out of current function"); | 749 title = WebInspector.UIString("Step out of current function"); |
| 750 this._stepOutButton = this._createButtonAndRegisterShortcutsForAction("s
tep-out-toolbar-item", title, "debugger.step-out"); | 750 this._stepOutButton = this._createButtonAndRegisterShortcutsForAction("s
tep-out-toolbar-item", title, "debugger.step-out"); |
| 751 debugToolbar.appendToolbarItem(this._stepOutButton); | 751 debugToolbar.appendToolbarItem(this._stepOutButton); |
| 752 | 752 |
| 753 debugToolbar.appendSeparator(); | 753 debugToolbar.appendSeparator(); |
| 754 | 754 |
| 755 // Toggle Breakpoints | 755 // Toggle Breakpoints |
| 756 this._toggleBreakpointsButton = new WebInspector.ToolbarButton(WebInspec
tor.UIString("Deactivate breakpoints"), "breakpoint-toolbar-item"); | 756 this._toggleBreakpointsButton = WebInspector.ToolbarButton.createActionB
utton("debugger.toggle-breakpoints-active"); |
| 757 this._toggleBreakpointsButton.setToggled(false); | 757 this._toggleBreakpointsButton.setToggled(false); |
| 758 this._toggleBreakpointsButton.addEventListener("click", this._toggleBrea
kpointsClicked, this); | |
| 759 debugToolbar.appendToolbarItem(this._toggleBreakpointsButton); | 758 debugToolbar.appendToolbarItem(this._toggleBreakpointsButton); |
| 760 | 759 |
| 761 // Pause on Exception | 760 // Pause on Exception |
| 762 this._pauseOnExceptionButton = new WebInspector.ToolbarButton("", "pause
-on-exceptions-toolbar-item"); | 761 this._pauseOnExceptionButton = new WebInspector.ToolbarButton("", "pause
-on-exceptions-toolbar-item"); |
| 763 this._pauseOnExceptionButton.addEventListener("click", this._togglePause
OnExceptions, this); | 762 this._pauseOnExceptionButton.addEventListener("click", this._togglePause
OnExceptions, this); |
| 764 debugToolbar.appendToolbarItem(this._pauseOnExceptionButton); | 763 debugToolbar.appendToolbarItem(this._pauseOnExceptionButton); |
| 765 | 764 |
| 766 debugToolbar.appendSeparator(); | 765 debugToolbar.appendSeparator(); |
| 767 | 766 |
| 768 // Async operations | 767 // Async operations |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1410 break; | 1409 break; |
| 1411 case "debugger.step-into-async": | 1410 case "debugger.step-into-async": |
| 1412 panel._stepIntoAsyncClicked(); | 1411 panel._stepIntoAsyncClicked(); |
| 1413 break; | 1412 break; |
| 1414 case "debugger.step-out": | 1413 case "debugger.step-out": |
| 1415 panel._stepOutClicked(); | 1414 panel._stepOutClicked(); |
| 1416 break; | 1415 break; |
| 1417 case "debugger.run-snippet": | 1416 case "debugger.run-snippet": |
| 1418 panel._runSnippet(); | 1417 panel._runSnippet(); |
| 1419 break; | 1418 break; |
| 1420 | 1419 case "debugger.toggle-breakpoints-active": |
| 1420 panel._toggleBreakpointsActive(); |
| 1421 break; |
| 1421 } | 1422 } |
| 1422 } | 1423 } |
| 1423 } | 1424 } |
| 1424 | 1425 |
| 1425 WebInspector.SourcesPanel.show = function() | 1426 WebInspector.SourcesPanel.show = function() |
| 1426 { | 1427 { |
| 1427 WebInspector.inspectorView.setCurrentPanel(WebInspector.SourcesPanel.instanc
e()); | 1428 WebInspector.inspectorView.setCurrentPanel(WebInspector.SourcesPanel.instanc
e()); |
| 1428 } | 1429 } |
| 1429 | 1430 |
| 1430 /** | 1431 /** |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1448 WebInspector.SourcesPanelFactory.prototype = { | 1449 WebInspector.SourcesPanelFactory.prototype = { |
| 1449 /** | 1450 /** |
| 1450 * @override | 1451 * @override |
| 1451 * @return {!WebInspector.Panel} | 1452 * @return {!WebInspector.Panel} |
| 1452 */ | 1453 */ |
| 1453 createPanel: function() | 1454 createPanel: function() |
| 1454 { | 1455 { |
| 1455 return WebInspector.SourcesPanel.instance(); | 1456 return WebInspector.SourcesPanel.instance(); |
| 1456 } | 1457 } |
| 1457 } | 1458 } |
| OLD | NEW |