| 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 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 | 801 |
| 802 if (sourceFrame && event.data.focusSource) | 802 if (sourceFrame && event.data.focusSource) |
| 803 sourceFrame.focus(); | 803 sourceFrame.focus(); |
| 804 }, | 804 }, |
| 805 | 805 |
| 806 _pauseOnExceptionEnabledChanged: function() | 806 _pauseOnExceptionEnabledChanged: function() |
| 807 { | 807 { |
| 808 var enabled = WebInspector.settings.pauseOnExceptionEnabled.get(); | 808 var enabled = WebInspector.settings.pauseOnExceptionEnabled.get(); |
| 809 this._pauseOnExceptionButton.toggled = enabled; | 809 this._pauseOnExceptionButton.toggled = enabled; |
| 810 this._pauseOnExceptionButton.title = WebInspector.UIString(enabled ? "Do
n't pause on exceptions." : "Pause on exceptions."); | 810 this._pauseOnExceptionButton.title = WebInspector.UIString(enabled ? "Do
n't pause on exceptions." : "Pause on exceptions."); |
| 811 this._debugToolbarDrawer.enableStyleClass("expanded", enabled); | 811 this._debugToolbarDrawer.classList.toggle("expanded", enabled); |
| 812 }, | 812 }, |
| 813 | 813 |
| 814 _updateDebuggerButtons: function() | 814 _updateDebuggerButtons: function() |
| 815 { | 815 { |
| 816 if (this._paused) { | 816 if (this._paused) { |
| 817 this._updateButtonTitle(this._pauseButton, WebInspector.UIString("Re
sume script execution (%s).")) | 817 this._updateButtonTitle(this._pauseButton, WebInspector.UIString("Re
sume script execution (%s).")) |
| 818 this._pauseButton.state = true; | 818 this._pauseButton.state = true; |
| 819 this._pauseButton.setLongClickOptionsEnabled((function() { return [
this._longResumeButton ] }).bind(this)); | 819 this._pauseButton.setLongClickOptionsEnabled((function() { return [
this._longResumeButton ] }).bind(this)); |
| 820 | 820 |
| 821 this._pauseButton.setEnabled(true); | 821 this._pauseButton.setEnabled(true); |
| (...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1858 { | 1858 { |
| 1859 } | 1859 } |
| 1860 | 1860 |
| 1861 WebInspector.SourcesPanel.EditorAction.prototype = { | 1861 WebInspector.SourcesPanel.EditorAction.prototype = { |
| 1862 /** | 1862 /** |
| 1863 * @param {!WebInspector.SourcesPanel} panel | 1863 * @param {!WebInspector.SourcesPanel} panel |
| 1864 * @return {!Element} | 1864 * @return {!Element} |
| 1865 */ | 1865 */ |
| 1866 button: function(panel) { } | 1866 button: function(panel) { } |
| 1867 } | 1867 } |
| OLD | NEW |