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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 this.domBreakpoints = this.createSetting("domBreakpoints", []); | 72 this.domBreakpoints = this.createSetting("domBreakpoints", []); |
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.overrideUserAgent = this.createSetting("overrideUserAgent", false); | 77 this.overrideUserAgent = this.createSetting("overrideUserAgent", false); |
78 this.userAgent = this.createSetting("userAgent", ""); | 78 this.userAgent = this.createSetting("userAgent", ""); |
79 this.overrideDeviceMetrics = this.createSetting("overrideDeviceMetrics", fal
se); | 79 this.overrideDeviceMetrics = this.createSetting("overrideDeviceMetrics", fal
se); |
80 this.deviceMetrics = this.createSetting("deviceMetrics", ""); | 80 this.deviceMetrics = this.createSetting("deviceMetrics", ""); |
81 this.deviceFitWindow = this.createSetting("deviceFitWindow", true); | 81 this.deviceFitWindow = this.createSetting("deviceFitWindow", true); |
| 82 this.emulateViewport = this.createSetting("emulateViewport", false); |
82 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); | 83 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); |
83 this.showShadowDOM = this.createSetting("showShadowDOM", false); | 84 this.showShadowDOM = this.createSetting("showShadowDOM", false); |
84 this.zoomLevel = this.createSetting("zoomLevel", 0); | 85 this.zoomLevel = this.createSetting("zoomLevel", 0); |
85 this.savedURLs = this.createSetting("savedURLs", {}); | 86 this.savedURLs = this.createSetting("savedURLs", {}); |
86 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); | 87 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); |
87 this.overrideGeolocation = this.createSetting("overrideGeolocation", false); | 88 this.overrideGeolocation = this.createSetting("overrideGeolocation", false); |
88 this.geolocationOverride = this.createSetting("geolocationOverride", ""); | 89 this.geolocationOverride = this.createSetting("geolocationOverride", ""); |
89 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati
on", false); | 90 this.overrideDeviceOrientation = this.createSetting("overrideDeviceOrientati
on", false); |
90 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); | 91 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); |
91 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe
apSnapshotProperties", false); | 92 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe
apSnapshotProperties", false); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 { | 471 { |
471 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 472 // 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. | 473 // periodical breakpoints duplication leading to inspector slowness. |
473 if (breakpointsSetting.get().length > maxBreakpointsCount) | 474 if (breakpointsSetting.get().length > maxBreakpointsCount) |
474 breakpointsSetting.set([]); | 475 breakpointsSetting.set([]); |
475 } | 476 } |
476 } | 477 } |
477 | 478 |
478 WebInspector.settings = new WebInspector.Settings(); | 479 WebInspector.settings = new WebInspector.Settings(); |
479 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); | 480 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); |
OLD | NEW |