| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); | 88 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); |
| 89 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe
apSnapshotProperties", false); | 89 this.showAdvancedHeapSnapshotProperties = this.createSetting("showAdvancedHe
apSnapshotProperties", false); |
| 90 this.highResolutionCpuProfiling = this.createSetting("highResolutionCpuProfi
ling", false); | 90 this.highResolutionCpuProfiling = this.createSetting("highResolutionCpuProfi
ling", false); |
| 91 this.searchInContentScripts = this.createSetting("searchInContentScripts", f
alse); | 91 this.searchInContentScripts = this.createSetting("searchInContentScripts", f
alse); |
| 92 this.textEditorIndent = this.createSetting("textEditorIndent", " "); | 92 this.textEditorIndent = this.createSetting("textEditorIndent", " "); |
| 93 this.textEditorAutoDetectIndent = this.createSetting("textEditorAutoIndentIn
dent", true); | 93 this.textEditorAutoDetectIndent = this.createSetting("textEditorAutoIndentIn
dent", true); |
| 94 this.textEditorAutocompletion = this.createSetting("textEditorAutocompletion
", true); | 94 this.textEditorAutocompletion = this.createSetting("textEditorAutocompletion
", true); |
| 95 this.textEditorBracketMatching = this.createSetting("textEditorBracketMatchi
ng", true); | 95 this.textEditorBracketMatching = this.createSetting("textEditorBracketMatchi
ng", true); |
| 96 this.cssReloadEnabled = this.createSetting("cssReloadEnabled", false); | 96 this.cssReloadEnabled = this.createSetting("cssReloadEnabled", false); |
| 97 this.timelineCaptureStacks = this.createSetting("timelineCaptureStacks", tru
e); | 97 this.timelineCaptureStacks = this.createSetting("timelineCaptureStacks", tru
e); |
| 98 this.timelineLiveUpdate = this.createSetting("timelineLiveUpdate", true); |
| 98 this.showMetricsRulers = this.createSetting("showMetricsRulers", false); | 99 this.showMetricsRulers = this.createSetting("showMetricsRulers", false); |
| 99 this.overrideCSSMedia = this.createSetting("overrideCSSMedia", false); | 100 this.overrideCSSMedia = this.createSetting("overrideCSSMedia", false); |
| 100 this.emulatedCSSMedia = this.createSetting("emulatedCSSMedia", "print"); | 101 this.emulatedCSSMedia = this.createSetting("emulatedCSSMedia", "print"); |
| 101 this.workerInspectorWidth = this.createSetting("workerInspectorWidth", 600); | 102 this.workerInspectorWidth = this.createSetting("workerInspectorWidth", 600); |
| 102 this.workerInspectorHeight = this.createSetting("workerInspectorHeight", 600
); | 103 this.workerInspectorHeight = this.createSetting("workerInspectorHeight", 600
); |
| 103 this.messageURLFilters = this.createSetting("messageURLFilters", {}); | 104 this.messageURLFilters = this.createSetting("messageURLFilters", {}); |
| 104 this.networkHideDataURL = this.createSetting("networkHideDataURL", false); | 105 this.networkHideDataURL = this.createSetting("networkHideDataURL", false); |
| 105 this.messageLevelFilters = this.createSetting("messageLevelFilters", {}); | 106 this.messageLevelFilters = this.createSetting("messageLevelFilters", {}); |
| 106 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW
henDockedToRight", true); | 107 this.splitVerticallyWhenDockedToRight = this.createSetting("splitVerticallyW
henDockedToRight", true); |
| 107 this.visiblePanels = this.createSetting("visiblePanels", {}); | 108 this.visiblePanels = this.createSetting("visiblePanels", {}); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s
tep-in candidates while debugging."); | 286 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s
tep-in candidates while debugging."); |
| 286 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc",
"Do not open drawer on Esc"); | 287 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc",
"Do not open drawer on Esc"); |
| 287 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show
editor in drawer"); | 288 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show
editor in drawer"); |
| 288 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t
imeline"); | 289 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t
imeline"); |
| 289 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); | 290 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); |
| 290 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh
ow workers in main window"); | 291 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh
ow workers in main window"); |
| 291 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left
mode"); | 292 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left
mode"); |
| 292 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab
le JavaScript heap allocation profiler"); | 293 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab
le JavaScript heap allocation profiler"); |
| 293 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Enab
le FlameChart mode in Timeline"); | 294 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Enab
le FlameChart mode in Timeline"); |
| 294 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics
", "Show memory breakdown statistics in heap snapshots"); | 295 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics
", "Show memory breakdown statistics in heap snapshots"); |
| 296 this.timelineNoLiveUpdate = this._createExperiment("timelineNoLiveUpdate", "
Timeline w/o live update"); |
| 295 | 297 |
| 296 this._cleanUpSetting(); | 298 this._cleanUpSetting(); |
| 297 } | 299 } |
| 298 | 300 |
| 299 WebInspector.ExperimentsSettings.prototype = { | 301 WebInspector.ExperimentsSettings.prototype = { |
| 300 /** | 302 /** |
| 301 * @return {!Array.<!WebInspector.Experiment>} | 303 * @return {!Array.<!WebInspector.Experiment>} |
| 302 */ | 304 */ |
| 303 get experiments() | 305 get experiments() |
| 304 { | 306 { |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 { | 605 { |
| 604 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 606 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
| 605 // periodical breakpoints duplication leading to inspector slowness. | 607 // periodical breakpoints duplication leading to inspector slowness. |
| 606 if (breakpointsSetting.get().length > maxBreakpointsCount) | 608 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 607 breakpointsSetting.set([]); | 609 breakpointsSetting.set([]); |
| 608 } | 610 } |
| 609 } | 611 } |
| 610 | 612 |
| 611 WebInspector.settings = new WebInspector.Settings(); | 613 WebInspector.settings = new WebInspector.Settings(); |
| 612 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); | 614 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); |
| OLD | NEW |