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

Side by Side Diff: Source/WebCore/inspector/front-end/SettingsScreen.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
« no previous file with comments | « Source/WebCore/inspector/front-end/Settings.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 p = this._appendSection(WebInspector.UIString("Elements")); 261 p = this._appendSection(WebInspector.UIString("Elements"));
262 p.appendChild(this._createRadioSetting(WebInspector.UIString("Color format") , [ 262 p.appendChild(this._createRadioSetting(WebInspector.UIString("Color format") , [
263 [ WebInspector.Color.Format.Original, WebInspector.UIString("As authored ") ], 263 [ WebInspector.Color.Format.Original, WebInspector.UIString("As authored ") ],
264 [ WebInspector.Color.Format.HEX, "HEX: #DAC0DE" ], 264 [ WebInspector.Color.Format.HEX, "HEX: #DAC0DE" ],
265 [ WebInspector.Color.Format.RGB, "RGB: rgb(128, 255, 255)" ], 265 [ WebInspector.Color.Format.RGB, "RGB: rgb(128, 255, 255)" ],
266 [ WebInspector.Color.Format.HSL, "HSL: hsl(300, 80%, 90%)" ] ], WebInspe ctor.settings.colorFormat)); 266 [ WebInspector.Color.Format.HSL, "HSL: hsl(300, 80%, 90%)" ] ], WebInspe ctor.settings.colorFormat));
267 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show user a gent styles"), WebInspector.settings.showUserAgentStyles)); 267 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show user a gent styles"), WebInspector.settings.showUserAgentStyles));
268 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Word wrap") , WebInspector.settings.domWordWrap)); 268 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Word wrap") , WebInspector.settings.domWordWrap));
269 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show Shadow DOM"), WebInspector.settings.showShadowDOM)); 269 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show Shadow DOM"), WebInspector.settings.showShadowDOM));
270 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show rulers "), WebInspector.settings.showMetricsRulers));
270 271
271 p = this._appendSection(WebInspector.UIString("Rendering")); 272 p = this._appendSection(WebInspector.UIString("Rendering"));
272 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show paint rectangles"), WebInspector.settings.showPaintRects)); 273 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show paint rectangles"), WebInspector.settings.showPaintRects));
273 WebInspector.settings.showPaintRects.addChangeListener(this._showPaintRectsC hanged, this); 274 WebInspector.settings.showPaintRects.addChangeListener(this._showPaintRectsC hanged, this);
274 275
275 p = this._appendSection(WebInspector.UIString("Sources")); 276 p = this._appendSection(WebInspector.UIString("Sources"));
276 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show folder s"), WebInspector.settings.showScriptFolders)); 277 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show folder s"), WebInspector.settings.showScriptFolders));
277 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Search in c ontent scripts"), WebInspector.settings.searchInContentScripts)); 278 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Search in c ontent scripts"), WebInspector.settings.searchInContentScripts));
278 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Enable sour ce maps"), WebInspector.settings.sourceMapsEnabled)); 279 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Enable sour ce maps"), WebInspector.settings.sourceMapsEnabled));
279 if (WebInspector.experimentsSettings.isEnabled("sass")) 280 if (WebInspector.experimentsSettings.isEnabled("sass"))
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 if (this._settingsScreen) 1019 if (this._settingsScreen)
1019 this._settingsScreen.hide(); 1020 this._settingsScreen.hide();
1020 }, 1021 },
1021 1022
1022 resize: function() 1023 resize: function()
1023 { 1024 {
1024 if (this._settingsScreen && this._settingsScreen.isShowing()) 1025 if (this._settingsScreen && this._settingsScreen.isShowing())
1025 this._settingsScreen.doResize(); 1026 this._settingsScreen.doResize();
1026 } 1027 }
1027 } 1028 }
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/Settings.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698