Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 342 this._compositingModeSettings.appendChild(this._createCheckboxSetting(WebIns pector.UIString("Show FPS meter"), WebInspector.settings.showFPSCounter, false, this._showFPSCheckbox)); | 342 this._compositingModeSettings.appendChild(this._createCheckboxSetting(WebIns pector.UIString("Show FPS meter"), WebInspector.settings.showFPSCounter, false, this._showFPSCheckbox)); |
| 343 this._continousPaintingCheckbox = document.createElement("input"); | 343 this._continousPaintingCheckbox = document.createElement("input"); |
| 344 this._compositingModeSettings.appendChild(this._createCheckboxSetting(WebIns pector.UIString("Enable continuous page repainting"), WebInspector.settings.cont inuousPainting, false, this._continousPaintingCheckbox)); | 344 this._compositingModeSettings.appendChild(this._createCheckboxSetting(WebIns pector.UIString("Enable continuous page repainting"), WebInspector.settings.cont inuousPainting, false, this._continousPaintingCheckbox)); |
| 345 this._showScrollBottleneckRectsCheckbox = document.createElement("input"); | 345 this._showScrollBottleneckRectsCheckbox = document.createElement("input"); |
| 346 var tooltip = WebInspector.UIString("Shows areas of the page that slow down scrolling:\nTouch and mousewheel event listeners can delay scrolling.\nSome area s need to repaint their content when scrolled."); | 346 var tooltip = WebInspector.UIString("Shows areas of the page that slow down scrolling:\nTouch and mousewheel event listeners can delay scrolling.\nSome area s need to repaint their content when scrolled."); |
| 347 this._compositingModeSettings.appendChild(this._createCheckboxSetting(WebIns pector.UIString("Show potential scroll bottlenecks"), WebInspector.settings.show ScrollBottleneckRects, false, this._showScrollBottleneckRectsCheckbox, tooltip)) ; | 347 this._compositingModeSettings.appendChild(this._createCheckboxSetting(WebIns pector.UIString("Show potential scroll bottlenecks"), WebInspector.settings.show ScrollBottleneckRects, false, this._showScrollBottleneckRectsCheckbox, tooltip)) ; |
| 348 this._forceCompositingModeChanged(); | 348 this._forceCompositingModeChanged(); |
| 349 | 349 |
| 350 p = this._appendSection(WebInspector.UIString("Sources")); | 350 p = this._appendSection(WebInspector.UIString("Sources")); |
| 351 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Search in c ontent scripts"), WebInspector.settings.searchInContentScripts)); | 351 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Search in c ontent scripts"), WebInspector.settings.searchInContentScripts)); |
| 352 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Enable sour ce maps"), WebInspector.settings.sourceMapsEnabled)); | 352 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Enable JS s ource maps"), WebInspector.settings.jsSourceMapsEnabled)); |
| 353 if (WebInspector.experimentsSettings.isEnabled("sass")) | 353 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Enable CSS source maps"), WebInspector.settings.cssSourceMapsEnabled)); |
| 354 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Auto-re load CSS upon Sass save"), WebInspector.settings.cssReloadEnabled)); | 354 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Auto-reload generated CSS"), WebInspector.settings.cssReloadEnabled)); |
|
vsevik
2013/07/12 13:07:08
Gray out when css source maps are disabled.
| |
| 355 var indentationElement = this._createSelectSetting(WebInspector.UIString("In dentation"), [ | 355 var indentationElement = this._createSelectSetting(WebInspector.UIString("In dentation"), [ |
| 356 [ WebInspector.UIString("2 spaces"), WebInspector.TextUtils.Indent.T woSpaces ], | 356 [ WebInspector.UIString("2 spaces"), WebInspector.TextUtils.Indent.T woSpaces ], |
| 357 [ WebInspector.UIString("4 spaces"), WebInspector.TextUtils.Indent.F ourSpaces ], | 357 [ WebInspector.UIString("4 spaces"), WebInspector.TextUtils.Indent.F ourSpaces ], |
| 358 [ WebInspector.UIString("8 spaces"), WebInspector.TextUtils.Indent.E ightSpaces ], | 358 [ WebInspector.UIString("8 spaces"), WebInspector.TextUtils.Indent.E ightSpaces ], |
| 359 [ WebInspector.UIString("Tab character"), WebInspector.TextUtils.Ind ent.TabCharacter ] | 359 [ WebInspector.UIString("Tab character"), WebInspector.TextUtils.Ind ent.TabCharacter ] |
| 360 ], WebInspector.settings.textEditorIndent); | 360 ], WebInspector.settings.textEditorIndent); |
| 361 indentationElement.firstChild.className = "toplevel"; | 361 indentationElement.firstChild.className = "toplevel"; |
| 362 p.appendChild(indentationElement); | 362 p.appendChild(indentationElement); |
| 363 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show whites pace characters"), WebInspector.settings.showWhitespacesInEditor)); | 363 p.appendChild(this._createCheckboxSetting(WebInspector.UIString("Show whites pace characters"), WebInspector.settings.showWhitespacesInEditor)); |
| 364 | 364 |
| (...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1491 var columns = this.columns(); | 1491 var columns = this.columns(); |
| 1492 for (var i = 0; i < columns.length; ++i) { | 1492 for (var i = 0; i < columns.length; ++i) { |
| 1493 var columnId = columns[i]; | 1493 var columnId = columns[i]; |
| 1494 var inputElement = this._addInputElements[columnId]; | 1494 var inputElement = this._addInputElements[columnId]; |
| 1495 inputElement.value = ""; | 1495 inputElement.value = ""; |
| 1496 } | 1496 } |
| 1497 }, | 1497 }, |
| 1498 | 1498 |
| 1499 __proto__: WebInspector.SettingsList.prototype | 1499 __proto__: WebInspector.SettingsList.prototype |
| 1500 } | 1500 } |
| OLD | NEW |