| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 WebInspector.settings.javaScriptDisabled.addChangeListener(this._javaScriptD
isabledChanged, this); | 277 WebInspector.settings.javaScriptDisabled.addChangeListener(this._javaScriptD
isabledChanged, this); |
| 278 this._disableJSCheckbox = disableJSElement.getElementsByTagName("input")[0]; | 278 this._disableJSCheckbox = disableJSElement.getElementsByTagName("input")[0]; |
| 279 var disableJSInfoParent = this._disableJSCheckbox.parentElement.createChild(
"span", "monospace"); | 279 var disableJSInfoParent = this._disableJSCheckbox.parentElement.createChild(
"span", "monospace"); |
| 280 this._disableJSInfo = disableJSInfoParent.createChild("span", "object-info-s
tate-note hidden"); | 280 this._disableJSInfo = disableJSInfoParent.createChild("span", "object-info-s
tate-note hidden"); |
| 281 this._disableJSInfo.title = WebInspector.UIString("JavaScript is blocked on
the inspected page (may be disabled in browser settings)."); | 281 this._disableJSInfo.title = WebInspector.UIString("JavaScript is blocked on
the inspected page (may be disabled in browser settings)."); |
| 282 | 282 |
| 283 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.MainFrameNavigated, this._updateScriptDisabledCheckbox, this); | 283 WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeMod
el.EventTypes.MainFrameNavigated, this._updateScriptDisabledCheckbox, this); |
| 284 this._updateScriptDisabledCheckbox(); | 284 this._updateScriptDisabledCheckbox(); |
| 285 | 285 |
| 286 p = this._appendSection(WebInspector.UIString("Appearance")); | 286 p = this._appendSection(WebInspector.UIString("Appearance")); |
| 287 p.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIS
tring("Show 'Emulation' view in console drawer."), WebInspector.settings.showEmu
lationViewInDrawer)); | |
| 288 this._appendDrawerNote(p.lastElementChild); | |
| 289 p.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIS
tring("Show 'Rendering' view in console drawer."), WebInspector.settings.showRen
deringViewInDrawer)); | |
| 290 this._appendDrawerNote(p.lastElementChild); | |
| 291 var splitVerticallyTitle = WebInspector.UIString("Split panels vertically wh
en docked to %s", WebInspector.experimentsSettings.dockToLeft.isEnabled() ? "lef
t or right" : "right"); | 287 var splitVerticallyTitle = WebInspector.UIString("Split panels vertically wh
en docked to %s", WebInspector.experimentsSettings.dockToLeft.isEnabled() ? "lef
t or right" : "right"); |
| 292 p.appendChild(WebInspector.SettingsUI.createSettingCheckbox(splitVerticallyT
itle, WebInspector.settings.splitVerticallyWhenDockedToRight)); | 288 p.appendChild(WebInspector.SettingsUI.createSettingCheckbox(splitVerticallyT
itle, WebInspector.settings.splitVerticallyWhenDockedToRight)); |
| 293 var panelShortcutTitle = WebInspector.UIString("Enable %s + 1-9 shortcut to
switch panels", WebInspector.isMac() ? "Cmd" : "Ctrl"); | 289 var panelShortcutTitle = WebInspector.UIString("Enable %s + 1-9 shortcut to
switch panels", WebInspector.isMac() ? "Cmd" : "Ctrl"); |
| 294 p.appendChild(WebInspector.SettingsUI.createSettingCheckbox(panelShortcutTit
le, WebInspector.settings.shortcutPanelSwitch)); | 290 p.appendChild(WebInspector.SettingsUI.createSettingCheckbox(panelShortcutTit
le, WebInspector.settings.shortcutPanelSwitch)); |
| 295 | 291 |
| 296 p = this._appendSection(WebInspector.UIString("Elements")); | 292 p = this._appendSection(WebInspector.UIString("Elements")); |
| 297 var colorFormatElement = this._createSelectSetting(WebInspector.UIString("Co
lor format"), [ | 293 var colorFormatElement = this._createSelectSetting(WebInspector.UIString("Co
lor format"), [ |
| 298 [ WebInspector.UIString("As authored"), WebInspector.Color.Format.Or
iginal ], | 294 [ WebInspector.UIString("As authored"), WebInspector.Color.Format.Or
iginal ], |
| 299 [ "HEX: #DAC0DE", WebInspector.Color.Format.HEX ], | 295 [ "HEX: #DAC0DE", WebInspector.Color.Format.HEX ], |
| 300 [ "RGB: rgb(128, 255, 255)", WebInspector.Color.Format.RGB ], | 296 [ "RGB: rgb(128, 255, 255)", WebInspector.Color.Format.RGB ], |
| (...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 var inputElement = this._addInputElements[columnId]; | 1102 var inputElement = this._addInputElements[columnId]; |
| 1107 inputElement.value = ""; | 1103 inputElement.value = ""; |
| 1108 } | 1104 } |
| 1109 }, | 1105 }, |
| 1110 | 1106 |
| 1111 __proto__: WebInspector.SettingsList.prototype | 1107 __proto__: WebInspector.SettingsList.prototype |
| 1112 } | 1108 } |
| 1113 | 1109 |
| 1114 /** @type {!WebInspector.SettingsController} */ | 1110 /** @type {!WebInspector.SettingsController} */ |
| 1115 WebInspector.settingsController; | 1111 WebInspector.settingsController; |
| OLD | NEW |