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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 this.savedURLs = this.createSetting("savedURLs", {}); | 101 this.savedURLs = this.createSetting("savedURLs", {}); |
102 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); | 102 this.javaScriptDisabled = this.createSetting("javaScriptDisabled", false); |
103 this.geolocationOverride = this.createSetting("geolocationOverride", ""); | 103 this.geolocationOverride = this.createSetting("geolocationOverride", ""); |
104 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); | 104 this.deviceOrientationOverride = this.createSetting("deviceOrientationOverri
de", ""); |
105 this.showHeapSnapshotObjectsHiddenProperties = this.createSetting("showHeaSn
apshotObjectsHiddenProperties", false); | 105 this.showHeapSnapshotObjectsHiddenProperties = this.createSetting("showHeaSn
apshotObjectsHiddenProperties", false); |
106 this.searchInContentScripts = this.createSetting("searchInContentScripts", f
alse); | 106 this.searchInContentScripts = this.createSetting("searchInContentScripts", f
alse); |
107 this.textEditorIndent = this.createSetting("textEditorIndent", " "); | 107 this.textEditorIndent = this.createSetting("textEditorIndent", " "); |
108 this.lastDockState = this.createSetting("lastDockState", ""); | 108 this.lastDockState = this.createSetting("lastDockState", ""); |
109 this.cssReloadEnabled = this.createSetting("cssReloadEnabled", false); | 109 this.cssReloadEnabled = this.createSetting("cssReloadEnabled", false); |
110 this.cssReloadTimeout = this.createSetting("cssReloadTimeout", 1000); | 110 this.cssReloadTimeout = this.createSetting("cssReloadTimeout", 1000); |
| 111 this.showMetricsRulers = this.createSetting("showMetricsRulers", false); |
111 | 112 |
112 // If there are too many breakpoints in a storage, it is likely due to a rec
ent bug that caused | 113 // If there are too many breakpoints in a storage, it is likely due to a rec
ent bug that caused |
113 // periodical breakpoints duplication leading to inspector slowness. | 114 // periodical breakpoints duplication leading to inspector slowness. |
114 if (this.breakpoints.get().length > 500000) | 115 if (this.breakpoints.get().length > 500000) |
115 this.breakpoints.set([]); | 116 this.breakpoints.set([]); |
116 } | 117 } |
117 | 118 |
118 WebInspector.Settings.prototype = { | 119 WebInspector.Settings.prototype = { |
119 /** | 120 /** |
120 * @return {WebInspector.Setting} | 121 * @return {WebInspector.Setting} |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 }, | 329 }, |
329 | 330 |
330 enableForTest: function() | 331 enableForTest: function() |
331 { | 332 { |
332 this._experimentsSettings._enableForTest(this._name); | 333 this._experimentsSettings._enableForTest(this._name); |
333 } | 334 } |
334 } | 335 } |
335 | 336 |
336 WebInspector.settings = new WebInspector.Settings(); | 337 WebInspector.settings = new WebInspector.Settings(); |
337 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); | 338 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); |
OLD | NEW |