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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 this.workerInspectorHeight = this.createSetting("workerInspectorHeight", 600
); | 100 this.workerInspectorHeight = this.createSetting("workerInspectorHeight", 600
); |
101 this.messageURLFilters = this.createSetting("messageURLFilters", {}); | 101 this.messageURLFilters = this.createSetting("messageURLFilters", {}); |
102 this.networkHideDataURL = this.createSetting("networkHideDataURL", false); | 102 this.networkHideDataURL = this.createSetting("networkHideDataURL", false); |
103 this.messageLevelFilters = this.createSetting("messageLevelFilters", {}); | 103 this.messageLevelFilters = this.createSetting("messageLevelFilters", {}); |
104 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW
henDockedToRight", true); | 104 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW
henDockedToRight", true); |
105 this.visiblePanels = this.createSetting("visiblePanels", {}); | 105 this.visiblePanels = this.createSetting("visiblePanels", {}); |
106 this.shortcutPanelSwitch = this.createSetting("shortcutPanelSwitch", false); | 106 this.shortcutPanelSwitch = this.createSetting("shortcutPanelSwitch", false); |
107 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor",
false); | 107 this.showWhitespacesInEditor = this.createSetting("showWhitespacesInEditor",
false); |
108 this.skipStackFramesSwitch = this.createSetting("skipStackFramesSwitch", fal
se); | 108 this.skipStackFramesSwitch = this.createSetting("skipStackFramesSwitch", fal
se); |
109 this.skipStackFramesPattern = this.createSetting("skipStackFramesPattern", "
"); | 109 this.skipStackFramesPattern = this.createSetting("skipStackFramesPattern", "
"); |
110 this.showEmulationViewInDrawer = this.createSetting("showEmulationViewInDraw
er", true); | |
111 this.showRenderingViewInDrawer = this.createSetting("showRenderingViewInDraw
er", true); | |
112 this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled",
false); | 110 this.pauseOnExceptionEnabled = this.createSetting("pauseOnExceptionEnabled",
false); |
113 this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", f
alse); | 111 this.pauseOnCaughtException = this.createSetting("pauseOnCaughtException", f
alse); |
114 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f
alse); | 112 this.enableAsyncStackTraces = this.createSetting("enableAsyncStackTraces", f
alse); |
115 } | 113 } |
116 | 114 |
117 WebInspector.Settings.prototype = { | 115 WebInspector.Settings.prototype = { |
118 /** | 116 /** |
119 * @param {string} key | 117 * @param {string} key |
120 * @param {*} defaultValue | 118 * @param {*} defaultValue |
121 * @return {!WebInspector.Setting} | 119 * @return {!WebInspector.Setting} |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 { | 599 { |
602 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 600 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
603 // periodical breakpoints duplication leading to inspector slowness. | 601 // periodical breakpoints duplication leading to inspector slowness. |
604 if (breakpointsSetting.get().length > maxBreakpointsCount) | 602 if (breakpointsSetting.get().length > maxBreakpointsCount) |
605 breakpointsSetting.set([]); | 603 breakpointsSetting.set([]); |
606 } | 604 } |
607 } | 605 } |
608 | 606 |
609 WebInspector.settings = new WebInspector.Settings(); | 607 WebInspector.settings = new WebInspector.Settings(); |
610 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); | 608 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); |
OLD | NEW |