| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 this.resourcesLargeRows = this.createSetting("resourcesLargeRows", true); | 64 this.resourcesLargeRows = this.createSetting("resourcesLargeRows", true); |
| 65 this.resourcesSortOptions = this.createSetting("resourcesSortOptions", {time
Option: "responseTime", sizeOption: "transferSize"}); | 65 this.resourcesSortOptions = this.createSetting("resourcesSortOptions", {time
Option: "responseTime", sizeOption: "transferSize"}); |
| 66 this.resourceViewTab = this.createSetting("resourceViewTab", "preview"); | 66 this.resourceViewTab = this.createSetting("resourceViewTab", "preview"); |
| 67 this.showInheritedComputedStyleProperties = this.createSetting("showInherite
dComputedStyleProperties", false); | 67 this.showInheritedComputedStyleProperties = this.createSetting("showInherite
dComputedStyleProperties", false); |
| 68 this.showUserAgentStyles = this.createSetting("showUserAgentStyles", true); | 68 this.showUserAgentStyles = this.createSetting("showUserAgentStyles", true); |
| 69 this.watchExpressions = this.createSetting("watchExpressions", []); | 69 this.watchExpressions = this.createSetting("watchExpressions", []); |
| 70 this.breakpoints = this.createSetting("breakpoints", []); | 70 this.breakpoints = this.createSetting("breakpoints", []); |
| 71 this.eventListenerBreakpoints = this.createSetting("eventListenerBreakpoints
", []); | 71 this.eventListenerBreakpoints = this.createSetting("eventListenerBreakpoints
", []); |
| 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.sourceMapsEnabled = this.createSetting("sourceMapsEnabled", true); | 74 this.jsSourceMapsEnabled = this.createSetting("sourceMapsEnabled", true); |
| 75 this.cssSourceMapsEnabled = this.createSetting("cssSourceMapsEnabled", true)
; |
| 75 this.cacheDisabled = this.createSetting("cacheDisabled", false); | 76 this.cacheDisabled = this.createSetting("cacheDisabled", false); |
| 76 this.overrideUserAgent = this.createSetting("overrideUserAgent", ""); | 77 this.overrideUserAgent = this.createSetting("overrideUserAgent", ""); |
| 77 this.userAgent = this.createSetting("userAgent", ""); | 78 this.userAgent = this.createSetting("userAgent", ""); |
| 78 this.deviceMetrics = this.createSetting("deviceMetrics", ""); | 79 this.deviceMetrics = this.createSetting("deviceMetrics", ""); |
| 79 this.deviceFitWindow = this.createSetting("deviceFitWindow", false); | 80 this.deviceFitWindow = this.createSetting("deviceFitWindow", false); |
| 80 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); | 81 this.emulateTouchEvents = this.createSetting("emulateTouchEvents", false); |
| 81 this.showShadowDOM = this.createSetting("showShadowDOM", false); | 82 this.showShadowDOM = this.createSetting("showShadowDOM", false); |
| 82 this.zoomLevel = this.createSetting("zoomLevel", 0); | 83 this.zoomLevel = this.createSetting("zoomLevel", 0); |
| 83 this.savedURLs = this.createSetting("savedURLs", {}); | 84 this.savedURLs = this.createSetting("savedURLs", {}); |
| 84 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); | 85 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 { | 242 { |
| 242 this._setting = WebInspector.settings.createSetting("experiments", {}); | 243 this._setting = WebInspector.settings.createSetting("experiments", {}); |
| 243 this._experiments = []; | 244 this._experiments = []; |
| 244 this._enabledForTest = {}; | 245 this._enabledForTest = {}; |
| 245 | 246 |
| 246 // Add currently running experiments here. | 247 // Add currently running experiments here. |
| 247 this.nativeMemorySnapshots = this._createExperiment("nativeMemorySnapshots",
"Native memory profiling"); | 248 this.nativeMemorySnapshots = this._createExperiment("nativeMemorySnapshots",
"Native memory profiling"); |
| 248 this.nativeMemoryTimeline = this._createExperiment("nativeMemoryTimeline", "
Native memory timeline"); | 249 this.nativeMemoryTimeline = this._createExperiment("nativeMemoryTimeline", "
Native memory timeline"); |
| 249 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); | 250 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); |
| 250 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); | 251 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); |
| 251 this.sass = this._createExperiment("sass", "Sass stylesheet debugging"); | |
| 252 this.cssRegions = this._createExperiment("cssRegions", "CSS Regions Support"
); | 252 this.cssRegions = this._createExperiment("cssRegions", "CSS Regions Support"
); |
| 253 this.showOverridesInDrawer = this._createExperiment("showOverridesInDrawer",
"Show Overrides in drawer"); | 253 this.showOverridesInDrawer = this._createExperiment("showOverridesInDrawer",
"Show Overrides in drawer"); |
| 254 this.customizableToolbar = this._createExperiment("customizableToolbar", "En
able toolbar customization"); | 254 this.customizableToolbar = this._createExperiment("customizableToolbar", "En
able toolbar customization"); |
| 255 this.tethering = this._createExperiment("tethering", "Enable port forwarding
"); | 255 this.tethering = this._createExperiment("tethering", "Enable port forwarding
"); |
| 256 this.drawerOverlay = this._createExperiment("drawerOverlay", "Open console a
s overlay"); | 256 this.drawerOverlay = this._createExperiment("drawerOverlay", "Open console a
s overlay"); |
| 257 this.textEditorAutocomplete = this._createExperiment("textEditorAutocomplete
", "Enable text editor autocompletion"); | 257 this.textEditorAutocomplete = this._createExperiment("textEditorAutocomplete
", "Enable text editor autocompletion"); |
| 258 | 258 |
| 259 this._cleanUpSetting(); | 259 this._cleanUpSetting(); |
| 260 } | 260 } |
| 261 | 261 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 { | 447 { |
| 448 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 448 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
| 449 // periodical breakpoints duplication leading to inspector slowness. | 449 // periodical breakpoints duplication leading to inspector slowness. |
| 450 if (breakpointsSetting.get().length > maxBreakpointsCount) | 450 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 451 breakpointsSetting.set([]); | 451 breakpointsSetting.set([]); |
| 452 } | 452 } |
| 453 } | 453 } |
| 454 | 454 |
| 455 WebInspector.settings = new WebInspector.Settings(); | 455 WebInspector.settings = new WebInspector.Settings(); |
| 456 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); | 456 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); |
| OLD | NEW |