| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW
henDockedToRight", true); | 110 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW
henDockedToRight", true); |
| 111 this.visiblePanels = this.createSetting("visiblePanels", {}); | 111 this.visiblePanels = this.createSetting("visiblePanels", {}); |
| 112 this.shortcutPanelSwitch = this.createSetting("shortcutPanelSwitch", false); | 112 this.shortcutPanelSwitch = this.createSetting("shortcutPanelSwitch", false); |
| 113 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor",
false); | 113 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor",
false); |
| 114 this.skipStackFramesSwitch = this.createSetting("skipStackFramesSwitch", fal
se); | 114 this.skipStackFramesSwitch = this.createSetting("skipStackFramesSwitch", fal
se); |
| 115 this.skipStackFramesPattern = this.createSetting("skipStackFramesPattern", "
"); | 115 this.skipStackFramesPattern = this.createSetting("skipStackFramesPattern", "
"); |
| 116 this.screencastEnabled = this.createSetting("screencastEnabled", false); | 116 this.screencastEnabled = this.createSetting("screencastEnabled", false); |
| 117 this.screencastSidebarWidth = this.createSetting("screencastSidebarWidth", 3
00); | 117 this.screencastSidebarWidth = this.createSetting("screencastSidebarWidth", 3
00); |
| 118 this.showEmulationViewInDrawer = this.createSetting("showEmulationViewInDraw
er", true); | 118 this.showEmulationViewInDrawer = this.createSetting("showEmulationViewInDraw
er", true); |
| 119 this.showRenderingViewInDrawer = this.createSetting("showRenderingViewInDraw
er", true); | 119 this.showRenderingViewInDrawer = this.createSetting("showRenderingViewInDraw
er", true); |
| 120 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f
alse); |
| 121 this.maxAsyncStackTraceDepth = this.createSetting("maxAsyncStackTraceDepth",
4); |
| 120 } | 122 } |
| 121 | 123 |
| 122 WebInspector.Settings.prototype = { | 124 WebInspector.Settings.prototype = { |
| 123 /** | 125 /** |
| 124 * @param {string} key | 126 * @param {string} key |
| 125 * @param {*} defaultValue | 127 * @param {*} defaultValue |
| 126 * @return {!WebInspector.Setting} | 128 * @return {!WebInspector.Setting} |
| 127 */ | 129 */ |
| 128 createSetting: function(key, defaultValue) | 130 createSetting: function(key, defaultValue) |
| 129 { | 131 { |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 { | 472 { |
| 471 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 473 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
| 472 // periodical breakpoints duplication leading to inspector slowness. | 474 // periodical breakpoints duplication leading to inspector slowness. |
| 473 if (breakpointsSetting.get().length > maxBreakpointsCount) | 475 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 474 breakpointsSetting.set([]); | 476 breakpointsSetting.set([]); |
| 475 } | 477 } |
| 476 } | 478 } |
| 477 | 479 |
| 478 WebInspector.settings = new WebInspector.Settings(); | 480 WebInspector.settings = new WebInspector.Settings(); |
| 479 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); | 481 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); |
| OLD | NEW |