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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 this._enabledForTest = {}; | 198 this._enabledForTest = {}; |
199 | 199 |
200 // Add currently running experiments here. | 200 // Add currently running experiments here. |
201 this.nativeMemorySnapshots = this._createExperiment("nativeMemorySnapshots",
"Native memory profiling"); | 201 this.nativeMemorySnapshots = this._createExperiment("nativeMemorySnapshots",
"Native memory profiling"); |
202 this.nativeMemoryTimeline = this._createExperiment("nativeMemoryTimeline", "
Native memory timeline"); | 202 this.nativeMemoryTimeline = this._createExperiment("nativeMemoryTimeline", "
Native memory timeline"); |
203 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); | 203 this.fileSystemInspection = this._createExperiment("fileSystemInspection", "
FileSystem inspection"); |
204 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); | 204 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas
inspection"); |
205 this.sass = this._createExperiment("sass", "Support for Sass"); | 205 this.sass = this._createExperiment("sass", "Support for Sass"); |
206 this.cssRegions = this._createExperiment("cssRegions", "CSS Regions Support"
); | 206 this.cssRegions = this._createExperiment("cssRegions", "CSS Regions Support"
); |
207 this.showOverridesInDrawer = this._createExperiment("showOverridesInDrawer",
"Show Overrides in drawer"); | 207 this.showOverridesInDrawer = this._createExperiment("showOverridesInDrawer",
"Show Overrides in drawer"); |
208 this.fileSystemProject = this._createExperiment("fileSystemProject", "File s
ystem folders in Sources Panel"); | 208 this.fileSystemProject = this._createExperiment("fileSystemProject", "Worksp
aces"); |
209 this.showWhitespaceInEditor = this._createExperiment("showWhitespaceInEditor
", "Show whitespace characters in editor"); | 209 this.showWhitespaceInEditor = this._createExperiment("showWhitespaceInEditor
", "Show whitespace characters in editor"); |
210 this.customizableToolbar = this._createExperiment("customizableToolbar", "En
able toolbar customization"); | 210 this.customizableToolbar = this._createExperiment("customizableToolbar", "En
able toolbar customization"); |
211 this.tethering = this._createExperiment("tethering", "Enable reverse port fo
rwarding"); | 211 this.tethering = this._createExperiment("tethering", "Enable port forwarding
"); |
212 this.drawerOverlay = this._createExperiment("drawerOverlay", "Open console a
s overlay"); | 212 this.drawerOverlay = this._createExperiment("drawerOverlay", "Open console a
s overlay"); |
213 this.heapObjectsTracking = this._createExperiment("heapObjectsTracking", "En
able heap objects tracking profile type"); | 213 this.heapObjectsTracking = this._createExperiment("heapObjectsTracking", "En
able heap objects tracking profile type"); |
214 | 214 |
215 this._cleanUpSetting(); | 215 this._cleanUpSetting(); |
216 } | 216 } |
217 | 217 |
218 WebInspector.ExperimentsSettings.prototype = { | 218 WebInspector.ExperimentsSettings.prototype = { |
219 /** | 219 /** |
220 * @return {Array.<WebInspector.Experiment>} | 220 * @return {Array.<WebInspector.Experiment>} |
221 */ | 221 */ |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 { | 396 { |
397 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused | 397 // If there are too many breakpoints in a storage, it is likely due to a
recent bug that caused |
398 // periodical breakpoints duplication leading to inspector slowness. | 398 // periodical breakpoints duplication leading to inspector slowness. |
399 if (breakpointsSetting.get().length > maxBreakpointsCount) | 399 if (breakpointsSetting.get().length > maxBreakpointsCount) |
400 breakpointsSetting.set([]); | 400 breakpointsSetting.set([]); |
401 } | 401 } |
402 } | 402 } |
403 | 403 |
404 WebInspector.settings = new WebInspector.Settings(); | 404 WebInspector.settings = new WebInspector.Settings(); |
405 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); | 405 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); |
OLD | NEW |