| 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 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._stepIntoA
ction)); | 685 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._stepIntoA
ction)); |
| 686 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._stepOutAc
tion)); | 686 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._stepOutAc
tion)); |
| 687 debugToolbar.appendSeparator(); | 687 debugToolbar.appendSeparator(); |
| 688 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._toggleBre
akpointsActiveAction)); | 688 debugToolbar.appendToolbarItem(UI.Toolbar.createActionButton(this._toggleBre
akpointsActiveAction)); |
| 689 | 689 |
| 690 this._pauseOnExceptionButton = new UI.ToolbarToggle('', 'largeicon-pause-on-
exceptions'); | 690 this._pauseOnExceptionButton = new UI.ToolbarToggle('', 'largeicon-pause-on-
exceptions'); |
| 691 this._pauseOnExceptionButton.addEventListener(UI.ToolbarButton.Events.Click,
this._togglePauseOnExceptions, this); | 691 this._pauseOnExceptionButton.addEventListener(UI.ToolbarButton.Events.Click,
this._togglePauseOnExceptions, this); |
| 692 debugToolbar.appendToolbarItem(this._pauseOnExceptionButton); | 692 debugToolbar.appendToolbarItem(this._pauseOnExceptionButton); |
| 693 | 693 |
| 694 debugToolbar.appendSeparator(); | 694 debugToolbar.appendSeparator(); |
| 695 debugToolbar.appendToolbarItem(new UI.ToolbarCheckbox( | 695 debugToolbar.appendToolbarItem(new UI.ToolbarSettingCheckbox( |
| 696 Common.UIString('Async'), Common.UIString('Capture async stack traces'), | 696 Common.moduleSetting('enableAsyncStackTraces'), Common.UIString('Capture
async stack traces'), |
| 697 Common.moduleSetting('enableAsyncStackTraces'))); | 697 Common.UIString('Async'))); |
| 698 | 698 |
| 699 return debugToolbar; | 699 return debugToolbar; |
| 700 } | 700 } |
| 701 | 701 |
| 702 _createDebugToolbarDrawer() { | 702 _createDebugToolbarDrawer() { |
| 703 var debugToolbarDrawer = createElementWithClass('div', 'scripts-debug-toolba
r-drawer'); | 703 var debugToolbarDrawer = createElementWithClass('div', 'scripts-debug-toolba
r-drawer'); |
| 704 | 704 |
| 705 var label = Common.UIString('Pause On Caught Exceptions'); | 705 var label = Common.UIString('Pause On Caught Exceptions'); |
| 706 var setting = Common.moduleSetting('pauseOnCaughtException'); | 706 var setting = Common.moduleSetting('pauseOnCaughtException'); |
| 707 debugToolbarDrawer.appendChild(UI.SettingsUI.createSettingCheckbox(label, se
tting, true)); | 707 debugToolbarDrawer.appendChild(UI.SettingsUI.createSettingCheckbox(label, se
tting, true)); |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 */ | 1312 */ |
| 1313 willHide() { | 1313 willHide() { |
| 1314 UI.inspectorView.setDrawerMinimized(false); | 1314 UI.inspectorView.setDrawerMinimized(false); |
| 1315 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); | 1315 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); |
| 1316 } | 1316 } |
| 1317 | 1317 |
| 1318 _showViewInWrapper() { | 1318 _showViewInWrapper() { |
| 1319 this._view.show(this.element); | 1319 this._view.show(this.element); |
| 1320 } | 1320 } |
| 1321 }; | 1321 }; |
| OLD | NEW |