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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); | 83 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); |
84 this.showShadowDOM = this.createSetting("showShadowDOM", false); | 84 this.showShadowDOM = this.createSetting("showShadowDOM", false); |
85 this.zoomLevel = this.createSetting("zoomLevel", 0); | 85 this.zoomLevel = this.createSetting("zoomLevel", 0); |
86 this.savedURLs = this.createSetting("savedURLs", {}); | 86 this.savedURLs = this.createSetting("savedURLs", {}); |
87 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); | 87 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); |
88 this.overrideGeolocation = this.createSetting("overrideGeolocation", false); | 88 this.overrideGeolocation = this.createSetting("overrideGeolocation", false); |
89 this.geolocationOverride = this.createSetting("geolocationOverride", ""); | 89 this.geolocationOverride = this.createSetting("geolocationOverride", ""); |
90 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati
on", false); | 90 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati
on", false); |
91 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); | 91 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); |
92 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe
apSnapshotProperties", false); | 92 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe
apSnapshotProperties", false); |
93 this.highResolutionCpuProfiling = this.createSetting("highResolutionCpuProfi
ling", false); | |
94 this.searchInContentScripts = this.createSetting("searchInContentScripts", f
alse); | 93 this.searchInContentScripts = this.createSetting("searchInContentScripts", f
alse); |
95 this.textEditorIndent = this.createSetting("textEditorIndent", " "); | 94 this.textEditorIndent = this.createSetting("textEditorIndent", " "); |
96 this.textEditorAutoDetectIndent = this.createSetting("textEditorAutoIndentIn
dent", true); | 95 this.textEditorAutoDetectIndent = this.createSetting("textEditorAutoIndentIn
dent", true); |
97 this.lastDockState = this.createSetting("lastDockState", ""); | 96 this.lastDockState = this.createSetting("lastDockState", ""); |
98 this.cssReloadEnabled = this.createSetting("cssReloadEnabled", false); | 97 this.cssReloadEnabled = this.createSetting("cssReloadEnabled", false); |
99 this.showCpuOnTimelineRuler = this.createSetting("showCpuOnTimelineRuler", f
alse); | 98 this.showCpuOnTimelineRuler = this.createSetting("showCpuOnTimelineRuler", f
alse); |
100 this.timelineStackFramesToCapture = this.createSetting("timelineStackFramesT
oCapture", 30); | 99 this.timelineStackFramesToCapture = this.createSetting("timelineStackFramesT
oCapture", 30); |
101 this.timelineLimitStackFramesFlag = this.createSetting("timelineLimitStackFr
amesFlag", false); | 100 this.timelineLimitStackFramesFlag = this.createSetting("timelineLimitStackFr
amesFlag", false); |
102 this.showMetricsRulers = this.createSetting("showMetricsRulers", false); | 101 this.showMetricsRulers = this.createSetting("showMetricsRulers", false); |
103 this.overrideCSSMedia = this.createSetting("overrideCSSMedia", false); | 102 this.overrideCSSMedia = this.createSetting("overrideCSSMedia", false); |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 { | 467 { |
469 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 468 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
470 // periodical breakpoints duplication leading to inspector slowness. | 469 // periodical breakpoints duplication leading to inspector slowness. |
471 if (breakpointsSetting.get().length > maxBreakpointsCount) | 470 if (breakpointsSetting.get().length > maxBreakpointsCount) |
472 breakpointsSetting.set([]); | 471 breakpointsSetting.set([]); |
473 } | 472 } |
474 } | 473 } |
475 | 474 |
476 WebInspector.settings = new WebInspector.Settings(); | 475 WebInspector.settings = new WebInspector.Settings(); |
477 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); | 476 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); |
OLD | NEW |