Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Side by Side Diff: Source/WebCore/inspector/front-end/Settings.js

Issue 11366221: Merge 133885 - Web Inspector: Add option to disable rulers (Elements panel) (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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();
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/DOMAgent.js ('k') | Source/WebCore/inspector/front-end/SettingsScreen.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698