| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 this.xhrBreakpoints = this.createSetting("xhrBreakpoints", []); | 73 this.xhrBreakpoints = this.createSetting("xhrBreakpoints", []); |
| 74 this.jsSourceMapsEnabled = this.createSetting("sourceMapsEnabled", true); | 74 this.jsSourceMapsEnabled = this.createSetting("sourceMapsEnabled", true); |
| 75 this.cssSourceMapsEnabled = this.createSetting("cssSourceMapsEnabled", true)
; | 75 this.cssSourceMapsEnabled = this.createSetting("cssSourceMapsEnabled", true)
; |
| 76 this.cacheDisabled = this.createSetting("cacheDisabled", false); | 76 this.cacheDisabled = this.createSetting("cacheDisabled", false); |
| 77 this.enableOverridesOnStartup = this.createSetting("enableOverridesOnStartup
", false); | 77 this.enableOverridesOnStartup = this.createSetting("enableOverridesOnStartup
", false); |
| 78 this.overrideUserAgent = this.createSetting("overrideUserAgent", false); | 78 this.overrideUserAgent = this.createSetting("overrideUserAgent", false); |
| 79 this.userAgent = this.createSetting("userAgent", ""); | 79 this.userAgent = this.createSetting("userAgent", ""); |
| 80 this.overrideDeviceMetrics = this.createSetting("overrideDeviceMetrics", fal
se); | 80 this.overrideDeviceMetrics = this.createSetting("overrideDeviceMetrics", fal
se); |
| 81 this.deviceMetrics = this.createSetting("deviceMetrics", ""); | 81 this.deviceMetrics = this.createSetting("deviceMetrics", ""); |
| 82 this.deviceFitWindow = this.createSetting("deviceFitWindow", false); | 82 this.deviceFitWindow = this.createSetting("deviceFitWindow", false); |
| 83 this.textAutosizingOverride = this.createSetting("textAutosizingOverride", "
Default"); |
| 83 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); | 84 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); |
| 84 this.showShadowDOM = this.createSetting("showShadowDOM", false); | 85 this.showShadowDOM = this.createSetting("showShadowDOM", false); |
| 85 this.zoomLevel = this.createSetting("zoomLevel", 0); | 86 this.zoomLevel = this.createSetting("zoomLevel", 0); |
| 86 this.savedURLs = this.createSetting("savedURLs", {}); | 87 this.savedURLs = this.createSetting("savedURLs", {}); |
| 87 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); | 88 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); |
| 88 this.overrideGeolocation = this.createSetting("overrideGeolocation", false); | 89 this.overrideGeolocation = this.createSetting("overrideGeolocation", false); |
| 89 this.geolocationOverride = this.createSetting("geolocationOverride", ""); | 90 this.geolocationOverride = this.createSetting("geolocationOverride", ""); |
| 90 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati
on", false); | 91 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati
on", false); |
| 91 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); | 92 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); |
| 92 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe
apSnapshotProperties", false); | 93 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe
apSnapshotProperties", false); |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 { | 472 { |
| 472 // 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 |
| 473 // periodical breakpoints duplication leading to inspector slowness. | 474 // periodical breakpoints duplication leading to inspector slowness. |
| 474 if (breakpointsSetting.get().length > maxBreakpointsCount) | 475 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 475 breakpointsSetting.set([]); | 476 breakpointsSetting.set([]); |
| 476 } | 477 } |
| 477 } | 478 } |
| 478 | 479 |
| 479 WebInspector.settings = new WebInspector.Settings(); | 480 WebInspector.settings = new WebInspector.Settings(); |
| 480 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); | 481 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); |
| OLD | NEW |