| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 this.jsSourceMapsEnabled = this.createSetting("sourceMapsEnabled", true); | 69 this.jsSourceMapsEnabled = this.createSetting("sourceMapsEnabled", true); |
| 70 this.cssSourceMapsEnabled = this.createSetting("cssSourceMapsEnabled", true)
; | 70 this.cssSourceMapsEnabled = this.createSetting("cssSourceMapsEnabled", true)
; |
| 71 this.cacheDisabled = this.createSetting("cacheDisabled", false); | 71 this.cacheDisabled = this.createSetting("cacheDisabled", false); |
| 72 this.overrideUserAgent = this.createSetting("overrideUserAgent", false); | 72 this.overrideUserAgent = this.createSetting("overrideUserAgent", false); |
| 73 this.userAgent = this.createSetting("userAgent", ""); | 73 this.userAgent = this.createSetting("userAgent", ""); |
| 74 this.overrideDeviceMetrics = this.createSetting("overrideDeviceMetrics", fal
se); | 74 this.overrideDeviceMetrics = this.createSetting("overrideDeviceMetrics", fal
se); |
| 75 this.deviceMetrics = this.createSetting("deviceMetrics", ""); | 75 this.deviceMetrics = this.createSetting("deviceMetrics", ""); |
| 76 this.deviceFitWindow = this.createSetting("deviceFitWindow", true); | 76 this.deviceFitWindow = this.createSetting("deviceFitWindow", true); |
| 77 this.emulateViewport = this.createSetting("emulateViewport", false); | 77 this.emulateViewport = this.createSetting("emulateViewport", false); |
| 78 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); | 78 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); |
| 79 | 79 this.showUAShadowDOM = this.createSetting("showUAShadowDOM", false); |
| 80 // This setting affects the display of user-agent shadow DOM only, | |
| 81 // as author shadow DOM is displayed at all times. | |
| 82 this.showShadowDOM = this.createSetting("showShadowDOM", false); | |
| 83 this.savedURLs = this.createSetting("savedURLs", {}); | 80 this.savedURLs = this.createSetting("savedURLs", {}); |
| 84 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); | 81 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); |
| 85 this.overrideGeolocation = this.createSetting("overrideGeolocation", false); | 82 this.overrideGeolocation = this.createSetting("overrideGeolocation", false); |
| 86 this.geolocationOverride = this.createSetting("geolocationOverride", ""); | 83 this.geolocationOverride = this.createSetting("geolocationOverride", ""); |
| 87 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati
on", false); | 84 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati
on", false); |
| 88 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); | 85 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); |
| 89 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe
apSnapshotProperties", false); | 86 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe
apSnapshotProperties", false); |
| 90 this.highResolutionCpuProfiling = this.createSetting("highResolutionCpuProfi
ling", false); | 87 this.highResolutionCpuProfiling = this.createSetting("highResolutionCpuProfi
ling", false); |
| 91 this.searchInContentScripts = this.createSetting("searchInContentScripts", f
alse); | 88 this.searchInContentScripts = this.createSetting("searchInContentScripts", f
alse); |
| 92 this.textEditorIndent = this.createSetting("textEditorIndent", " "); | 89 this.textEditorIndent = this.createSetting("textEditorIndent", " "); |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 { | 602 { |
| 606 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 603 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
| 607 // periodical breakpoints duplication leading to inspector slowness. | 604 // periodical breakpoints duplication leading to inspector slowness. |
| 608 if (breakpointsSetting.get().length > maxBreakpointsCount) | 605 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 609 breakpointsSetting.set([]); | 606 breakpointsSetting.set([]); |
| 610 } | 607 } |
| 611 } | 608 } |
| 612 | 609 |
| 613 WebInspector.settings = new WebInspector.Settings(); | 610 WebInspector.settings = new WebInspector.Settings(); |
| 614 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); | 611 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); |
| OLD | NEW |