| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); | 292 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); |
| 293 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); | 293 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); |
| 294 this.devicesPanel = this._createExperiment("devicesPanel", "Devices panel"); | 294 this.devicesPanel = this._createExperiment("devicesPanel", "Devices panel"); |
| 295 this.disableAgentsWhenProfile = this._createExperiment("disableAgentsWhenPro
file", "Disable other agents and UI when profiler is active", true); | 295 this.disableAgentsWhenProfile = this._createExperiment("disableAgentsWhenPro
file", "Disable other agents and UI when profiler is active", true); |
| 296 this.dockToLeft = this._createExperiment("dockToLeft", "Dock to left", true)
; | 296 this.dockToLeft = this._createExperiment("dockToLeft", "Dock to left", true)
; |
| 297 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); | 297 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); |
| 298 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "JavaScript frameworks debugging"); | 298 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "JavaScript frameworks debugging"); |
| 299 this.gpuTimeline = this._createExperiment("gpuTimeline", "GPU data on timeli
ne", true); | 299 this.gpuTimeline = this._createExperiment("gpuTimeline", "GPU data on timeli
ne", true); |
| 300 this.layersPanel = this._createExperiment("layersPanel", "Layers panel"); | 300 this.layersPanel = this._createExperiment("layersPanel", "Layers panel"); |
| 301 this.timelineOnTraceEvents = this._createExperiment("timelineOnTraceEvents",
"Timeline on trace events"); | 301 this.timelineOnTraceEvents = this._createExperiment("timelineOnTraceEvents",
"Timeline on trace events"); |
| 302 this.paintProfiler = this._createExperiment("paintProfiler", "Paint profiler
"); |
| 302 this.timelinePowerProfiler = this._createExperiment("timelinePowerProfiler",
"Timeline power profiler"); | 303 this.timelinePowerProfiler = this._createExperiment("timelinePowerProfiler",
"Timeline power profiler"); |
| 303 this.timelineJSCPUProfile = this._createExperiment("timelineJSCPUProfile", "
Timeline with JS sampling"); | 304 this.timelineJSCPUProfile = this._createExperiment("timelineJSCPUProfile", "
Timeline with JS sampling"); |
| 304 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Wo
rkers in main window", true); | 305 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Wo
rkers in main window", true); |
| 305 | 306 |
| 306 this._cleanUpSetting(); | 307 this._cleanUpSetting(); |
| 307 } | 308 } |
| 308 | 309 |
| 309 WebInspector.ExperimentsSettings.prototype = { | 310 WebInspector.ExperimentsSettings.prototype = { |
| 310 /** | 311 /** |
| 311 * @return {!Array.<!WebInspector.Experiment>} | 312 * @return {!Array.<!WebInspector.Experiment>} |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 | 760 |
| 760 _fireChangedIfNeeded: function() | 761 _fireChangedIfNeeded: function() |
| 761 { | 762 { |
| 762 var newValue = this._calculateValue(); | 763 var newValue = this._calculateValue(); |
| 763 if (newValue === this._value) | 764 if (newValue === this._value) |
| 764 return; | 765 return; |
| 765 this._value = newValue; | 766 this._value = newValue; |
| 766 this._eventSupport.dispatchEventToListeners(this._name, this._value); | 767 this._eventSupport.dispatchEventToListeners(this._name, this._value); |
| 767 } | 768 } |
| 768 } | 769 } |
| OLD | NEW |