| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 * @param {boolean} experimentsEnabled | 266 * @param {boolean} experimentsEnabled |
| 267 */ | 267 */ |
| 268 WebInspector.ExperimentsSettings = function(experimentsEnabled) | 268 WebInspector.ExperimentsSettings = function(experimentsEnabled) |
| 269 { | 269 { |
| 270 this._experimentsEnabled = experimentsEnabled; | 270 this._experimentsEnabled = experimentsEnabled; |
| 271 this._setting = WebInspector.settings.createSetting("experiments", {}); | 271 this._setting = WebInspector.settings.createSetting("experiments", {}); |
| 272 this._experiments = []; | 272 this._experiments = []; |
| 273 this._enabledForTest = {}; | 273 this._enabledForTest = {}; |
| 274 | 274 |
| 275 // Add currently running experiments here. | 275 // Add currently running experiments here. |
| 276 this.asyncStackTraces = this._createExperiment("asyncStackTraces", "Enable s
upport for async stack traces"); | |
| 277 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); | 276 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); |
| 278 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); | 277 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); |
| 279 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "Enable frameworks debugging support"); | 278 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "Enable frameworks debugging support"); |
| 280 this.layersPanel = this._createExperiment("layersPanel", "Show Layers panel"
); | 279 this.layersPanel = this._createExperiment("layersPanel", "Show Layers panel"
); |
| 281 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc",
"Do not open drawer on Esc"); | 280 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc",
"Do not open drawer on Esc"); |
| 282 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show
editor in drawer"); | 281 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show
editor in drawer"); |
| 283 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t
imeline"); | 282 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t
imeline"); |
| 284 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); | 283 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); |
| 285 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh
ow workers in main window"); | 284 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh
ow workers in main window"); |
| 286 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left
mode"); | 285 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left
mode"); |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 { | 599 { |
| 601 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 600 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
| 602 // periodical breakpoints duplication leading to inspector slowness. | 601 // periodical breakpoints duplication leading to inspector slowness. |
| 603 if (breakpointsSetting.get().length > maxBreakpointsCount) | 602 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 604 breakpointsSetting.set([]); | 603 breakpointsSetting.set([]); |
| 605 } | 604 } |
| 606 } | 605 } |
| 607 | 606 |
| 608 WebInspector.settings = new WebInspector.Settings(); | 607 WebInspector.settings = new WebInspector.Settings(); |
| 609 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); | 608 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); |
| OLD | NEW |