| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); | 296 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); |
| 297 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "JavaScript frameworks debugging"); | 297 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "JavaScript frameworks debugging"); |
| 298 this.gpuTimeline = this._createExperiment("gpuTimeline", "GPU data on timeli
ne", true); | 298 this.gpuTimeline = this._createExperiment("gpuTimeline", "GPU data on timeli
ne", true); |
| 299 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics
", "Heap snapshot statistics", true); | 299 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics
", "Heap snapshot statistics", true); |
| 300 this.layersPanel = this._createExperiment("layersPanel", "Layers panel", tru
e); | 300 this.layersPanel = this._createExperiment("layersPanel", "Layers panel", tru
e); |
| 301 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Time
line flame chart"); | 301 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Time
line flame chart"); |
| 302 this.timelineOnTraceEvents = this._createExperiment("timelineOnTraceEvents",
"Timeline on trace events", true); | 302 this.timelineOnTraceEvents = this._createExperiment("timelineOnTraceEvents",
"Timeline on trace events", true); |
| 303 this.timelinePowerProfiler = this._createExperiment("timelinePowerProfiler",
"Timeline power profiler"); | 303 this.timelinePowerProfiler = this._createExperiment("timelinePowerProfiler",
"Timeline power profiler"); |
| 304 this.timelineTracingMode = this._createExperiment("timelineTracingMode", "Ti
meline tracing mode"); | 304 this.timelineTracingMode = this._createExperiment("timelineTracingMode", "Ti
meline tracing mode"); |
| 305 this.timelineJSCPUProfile = this._createExperiment("timelineJSCPUProfile", "
Timeline with JS sampling"); | 305 this.timelineJSCPUProfile = this._createExperiment("timelineJSCPUProfile", "
Timeline with JS sampling"); |
| 306 this.timelineNoLiveUpdate = this._createExperiment("timelineNoLiveUpdate", "
Timeline w/o live update", true); | |
| 307 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Wo
rkers in main window", true); | 306 this.workersInMainWindow = this._createExperiment("workersInMainWindow", "Wo
rkers in main window", true); |
| 308 | 307 |
| 309 this._cleanUpSetting(); | 308 this._cleanUpSetting(); |
| 310 } | 309 } |
| 311 | 310 |
| 312 WebInspector.ExperimentsSettings.prototype = { | 311 WebInspector.ExperimentsSettings.prototype = { |
| 313 /** | 312 /** |
| 314 * @return {!Array.<!WebInspector.Experiment>} | 313 * @return {!Array.<!WebInspector.Experiment>} |
| 315 */ | 314 */ |
| 316 get experiments() | 315 get experiments() |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 | 732 |
| 734 _fireChangedIfNeeded: function() | 733 _fireChangedIfNeeded: function() |
| 735 { | 734 { |
| 736 var newValue = this._calculateValue(); | 735 var newValue = this._calculateValue(); |
| 737 if (newValue === this._value) | 736 if (newValue === this._value) |
| 738 return; | 737 return; |
| 739 this._value = newValue; | 738 this._value = newValue; |
| 740 this._eventSupport.dispatchEventToListeners(this._name, this._value); | 739 this._eventSupport.dispatchEventToListeners(this._name, this._value); |
| 741 } | 740 } |
| 742 } | 741 } |
| OLD | NEW |