OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 this.messageLevelFilters = this.createSetting("messageLevelFilters", {}); | 105 this.messageLevelFilters = this.createSetting("messageLevelFilters", {}); |
106 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW
henDockedToRight", true); | 106 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW
henDockedToRight", true); |
107 this.visiblePanels = this.createSetting("visiblePanels", {}); | 107 this.visiblePanels = this.createSetting("visiblePanels", {}); |
108 this.shortcutPanelSwitch = this.createSetting("shortcutPanelSwitch", false); | 108 this.shortcutPanelSwitch = this.createSetting("shortcutPanelSwitch", false); |
109 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor",
false); | 109 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor",
false); |
110 this.skipStackFramesSwitch = this.createSetting("skipStackFramesSwitch", fal
se); | 110 this.skipStackFramesSwitch = this.createSetting("skipStackFramesSwitch", fal
se); |
111 this.skipStackFramesPattern = this.createRegExpSetting("skipStackFramesPatte
rn", ""); | 111 this.skipStackFramesPattern = this.createRegExpSetting("skipStackFramesPatte
rn", ""); |
112 this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled",
false); | 112 this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled",
false); |
113 this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", f
alse); | 113 this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", f
alse); |
114 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f
alse); | 114 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f
alse); |
| 115 this.allowPastingJavaScript = this.createSetting("allowPastingJavaScript", f
alse); |
115 } | 116 } |
116 | 117 |
117 WebInspector.Settings.prototype = { | 118 WebInspector.Settings.prototype = { |
118 /** | 119 /** |
119 * @param {string} key | 120 * @param {string} key |
120 * @param {*} defaultValue | 121 * @param {*} defaultValue |
121 * @return {!WebInspector.Setting} | 122 * @return {!WebInspector.Setting} |
122 */ | 123 */ |
123 createSetting: function(key, defaultValue) | 124 createSetting: function(key, defaultValue) |
124 { | 125 { |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 { | 757 { |
757 var newValue = this._calculateValue(); | 758 var newValue = this._calculateValue(); |
758 if (newValue === this._value) | 759 if (newValue === this._value) |
759 return; | 760 return; |
760 this._value = newValue; | 761 this._value = newValue; |
761 this._eventSupport.dispatchEventToListeners(this._name, this._value); | 762 this._eventSupport.dispatchEventToListeners(this._name, this._value); |
762 } | 763 } |
763 } | 764 } |
764 | 765 |
765 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.PauseOnExce
ptionStateSetting(); | 766 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.PauseOnExce
ptionStateSetting(); |
OLD | NEW |