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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 { | 305 { |
306 this._experimentsEnabled = experimentsEnabled; | 306 this._experimentsEnabled = experimentsEnabled; |
307 this._setting = WebInspector.settings.createSetting("experiments", {}); | 307 this._setting = WebInspector.settings.createSetting("experiments", {}); |
308 this._experiments = []; | 308 this._experiments = []; |
309 this._enabledForTest = {}; | 309 this._enabledForTest = {}; |
310 | 310 |
311 // Add currently running experiments here. | 311 // Add currently running experiments here. |
312 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); | 312 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet",
"Allow custom UI themes"); |
313 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); | 313 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); |
314 this.devicesPanel = this._createExperiment("devicesPanel", "Devices panel",
true); | 314 this.devicesPanel = this._createExperiment("devicesPanel", "Devices panel",
true); |
| 315 this.disableAgentsWhenProfile = this._createExperiment("disableAgentsWhenPro
file", "Disable other agents and UI when profiler is active", true); |
315 this.dockToLeft = this._createExperiment("dockToLeft", "Dock to left", true)
; | 316 this.dockToLeft = this._createExperiment("dockToLeft", "Dock to left", true)
; |
316 this.editorInDrawer = this._createExperiment("showEditorInDrawer", "Editor i
n drawer", true); | 317 this.editorInDrawer = this._createExperiment("showEditorInDrawer", "Editor i
n drawer", true); |
317 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); | 318 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); |
318 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "JavaScript frameworks debugging"); | 319 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin
gSupport", "JavaScript frameworks debugging"); |
319 this.gpuTimeline = this._createExperiment("gpuTimeline", "GPU data on timeli
ne", true); | 320 this.gpuTimeline = this._createExperiment("gpuTimeline", "GPU data on timeli
ne", true); |
320 this.heapAllocationProfiler = this._createExperiment("allocationProfiler", "
Heap allocation profiler"); | 321 this.heapAllocationProfiler = this._createExperiment("allocationProfiler", "
Heap allocation profiler"); |
321 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics
", "Heap snapshot statistics", true); | 322 this.heapSnapshotStatistics = this._createExperiment("heapSnapshotStatistics
", "Heap snapshot statistics", true); |
322 this.layersPanel = this._createExperiment("layersPanel", "Layers panel", tru
e); | 323 this.layersPanel = this._createExperiment("layersPanel", "Layers panel", tru
e); |
323 this.responsiveDesign = this._createExperiment("responsiveDesign", "Responsi
ve design", true); | 324 this.responsiveDesign = this._createExperiment("responsiveDesign", "Responsi
ve design", true); |
324 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Time
line flame chart"); | 325 this.timelineFlameChart = this._createExperiment("timelineFlameChart", "Time
line flame chart"); |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 | 757 |
757 _fireChangedIfNeeded: function() | 758 _fireChangedIfNeeded: function() |
758 { | 759 { |
759 var newValue = this._calculateValue(); | 760 var newValue = this._calculateValue(); |
760 if (newValue === this._value) | 761 if (newValue === this._value) |
761 return; | 762 return; |
762 this._value = newValue; | 763 this._value = newValue; |
763 this._eventSupport.dispatchEventToListeners(this._name, this._value); | 764 this._eventSupport.dispatchEventToListeners(this._name, this._value); |
764 } | 765 } |
765 } | 766 } |
OLD | NEW |