| 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s
tep-in candidates while debugging."); | 285 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s
tep-in candidates while debugging."); |
| 286 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc",
"Do not open drawer on Esc"); | 286 this.doNotOpenDrawerOnEsc = this._createExperiment("doNotOpenDrawerWithEsc",
"Do not open drawer on Esc"); |
| 287 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show
editor in drawer"); | 287 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show
editor in drawer"); |
| 288 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t
imeline"); | 288 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU data on t
imeline"); |
| 289 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); | 289 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); |
| 290 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh
ow workers in main window"); | 290 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Sh
ow workers in main window"); |
| 291 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left
mode"); | 291 this.dockToLeft = this._createExperiment("dockToLeft", "Enable dock to left
mode"); |
| 292 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab
le JavaScript heap allocation profiler"); | 292 this.allocationProfiler = this._createExperiment("allocationProfiler", "Enab
le JavaScript heap allocation profiler"); |
| 293 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Enab
le FlameChart mode in Timeline"); | 293 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Enab
le FlameChart mode in Timeline"); |
| 294 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics
", "Show memory breakdown statistics in heap snapshots"); | 294 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics
", "Show memory breakdown statistics in heap snapshots"); |
| 295 this.cssStyleSearch = this._createExperiment("cssStyleSearch", "Enable Style
s search and Computed style filtering"); |
| 295 | 296 |
| 296 this._cleanUpSetting(); | 297 this._cleanUpSetting(); |
| 297 } | 298 } |
| 298 | 299 |
| 299 WebInspector.ExperimentsSettings.prototype = { | 300 WebInspector.ExperimentsSettings.prototype = { |
| 300 /** | 301 /** |
| 301 * @return {!Array.<!WebInspector.Experiment>} | 302 * @return {!Array.<!WebInspector.Experiment>} |
| 302 */ | 303 */ |
| 303 get experiments() | 304 get experiments() |
| 304 { | 305 { |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 { | 574 { |
| 574 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 575 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
| 575 // periodical breakpoints duplication leading to inspector slowness. | 576 // periodical breakpoints duplication leading to inspector slowness. |
| 576 if (breakpointsSetting.get().length > maxBreakpointsCount) | 577 if (breakpointsSetting.get().length > maxBreakpointsCount) |
| 577 breakpointsSetting.set([]); | 578 breakpointsSetting.set([]); |
| 578 } | 579 } |
| 579 } | 580 } |
| 580 | 581 |
| 581 WebInspector.settings = new WebInspector.Settings(); | 582 WebInspector.settings = new WebInspector.Settings(); |
| 582 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); | 583 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(WebInspe
ctor.queryParam("experiments") !== null); |
| OLD | NEW |