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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._stepOverA
ction)); | 679 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._stepOverA
ction)); |
680 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._stepIntoA
ction)); | 680 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._stepIntoA
ction)); |
681 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._stepOutAc
tion)); | 681 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._stepOutAc
tion)); |
682 debugToolbar.appendSeparator(); | 682 debugToolbar.appendSeparator(); |
683 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._toggleBre
akpointsActiveAction)); | 683 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._toggleBre
akpointsActiveAction)); |
684 | 684 |
685 this._pauseOnExceptionButton = new UI.ToolbarToggle('', 'largeicon-pause-on-
exceptions'); | 685 this._pauseOnExceptionButton = new UI.ToolbarToggle('', 'largeicon-pause-on-
exceptions'); |
686 this._pauseOnExceptionButton.addEventListener(UI.ToolbarButton.Events.Click,
this._togglePauseOnExceptions, this); | 686 this._pauseOnExceptionButton.addEventListener(UI.ToolbarButton.Events.Click,
this._togglePauseOnExceptions, this); |
687 debugToolbar.appendToolbarItem(this._pauseOnExceptionButton); | 687 debugToolbar.appendToolbarItem(this._pauseOnExceptionButton); |
688 | 688 |
689 debugToolbar.appendSeparator(); | |
690 debugToolbar.appendToolbarItem(new UI.ToolbarSettingCheckbox( | |
691 Common.moduleSetting('enableAsyncStackTraces'), Common.UIString('Capture
async stack traces'), | |
692 Common.UIString('Async'))); | |
693 | |
694 return debugToolbar; | 689 return debugToolbar; |
695 } | 690 } |
696 | 691 |
697 _createDebugToolbarDrawer() { | 692 _createDebugToolbarDrawer() { |
698 var debugToolbarDrawer = createElementWithClass('div', 'scripts-debug-toolba
r-drawer'); | 693 var debugToolbarDrawer = createElementWithClass('div', 'scripts-debug-toolba
r-drawer'); |
699 | 694 |
700 var label = Common.UIString('Pause On Caught Exceptions'); | 695 var label = Common.UIString('Pause On Caught Exceptions'); |
701 var setting = Common.moduleSetting('pauseOnCaughtException'); | 696 var setting = Common.moduleSetting('pauseOnCaughtException'); |
702 debugToolbarDrawer.appendChild(UI.SettingsUI.createSettingCheckbox(label, se
tting, true)); | 697 debugToolbarDrawer.appendChild(UI.SettingsUI.createSettingCheckbox(label, se
tting, true)); |
703 | 698 |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 */ | 1295 */ |
1301 willHide() { | 1296 willHide() { |
1302 UI.inspectorView.setDrawerMinimized(false); | 1297 UI.inspectorView.setDrawerMinimized(false); |
1303 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); | 1298 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); |
1304 } | 1299 } |
1305 | 1300 |
1306 _showViewInWrapper() { | 1301 _showViewInWrapper() { |
1307 this._view.show(this.element); | 1302 this._view.show(this.element); |
1308 } | 1303 } |
1309 }; | 1304 }; |
OLD | NEW |