| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 WebInspector.ExperimentsSettings = function() | 272 WebInspector.ExperimentsSettings = function() |
| 273 { | 273 { |
| 274 this._setting = WebInspector.settings.createSetting("experiments", {}); | 274 this._setting = WebInspector.settings.createSetting("experiments", {}); |
| 275 this._experiments = []; | 275 this._experiments = []; |
| 276 this._enabledForTest = {}; | 276 this._enabledForTest = {}; |
| 277 | 277 |
| 278 // Add currently running experiments here. | 278 // Add currently running experiments here. |
| 279 this.asyncStackTraces = this._createExperiment("asyncStackTraces", "Enable s
upport for async stack traces"); | 279 this.asyncStackTraces = this._createExperiment("asyncStackTraces", "Enable s
upport for async stack traces"); |
| 280 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); | 280 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); |
| 281 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); | 281 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); |
| 282 this.cssRegions = this._createExperiment("cssRegions", "CSS Regions Support"
); | |
| 283 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "Enable frameworks debugging support"); | 282 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "Enable frameworks debugging support"); |
| 284 this.layersPanel = this._createExperiment("layersPanel", "Show Layers panel"
); | 283 this.layersPanel = this._createExperiment("layersPanel", "Show Layers panel"
); |
| 285 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s
tep-in candidates while debugging."); | 284 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s
tep-in candidates while debugging."); |
| 286 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc",
"Do not open drawer on Esc"); | 285 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc",
"Do not open drawer on Esc"); |
| 287 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show
editor in drawer"); | 286 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show
editor in drawer"); |
| 288 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t
imeline"); | 287 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t
imeline"); |
| 289 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); | 288 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); |
| 290 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh
ow workers in main window"); | 289 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh
ow workers in main window"); |
| 291 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left
mode"); | 290 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left
mode"); |
| 292 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab
le JavaScript heap allocation profiler"); | 291 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab
le JavaScript heap allocation profiler"); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 { | 489 { |
| 491 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 490 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
| 492 // periodical breakpoints duplication leading to inspector slowness. | 491 // periodical breakpoints duplication leading to inspector slowness. |
| 493 if (breakpointsSetting.get().length > maxBreakpointsCount) | 492 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 494 breakpointsSetting.set([]); | 493 breakpointsSetting.set([]); |
| 495 } | 494 } |
| 496 } | 495 } |
| 497 | 496 |
| 498 WebInspector.settings = new WebInspector.Settings(); | 497 WebInspector.settings = new WebInspector.Settings(); |
| 499 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); | 498 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); |
| OLD | NEW |