| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO(jhawkins): Add dialog-pref support to all preference controls. | 5 // TODO(jhawkins): Add dialog-pref support to all preference controls. |
| 6 | 6 |
| 7 cr.define('options', function() { | 7 cr.define('options', function() { |
| 8 | 8 |
| 9 var Preferences = options.Preferences; | 9 var Preferences = options.Preferences; |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 function updateElementState_(el, event) { | 50 function updateElementState_(el, event) { |
| 51 el.controlledBy = null; | 51 el.controlledBy = null; |
| 52 | 52 |
| 53 if (!event.value) | 53 if (!event.value) |
| 54 return; | 54 return; |
| 55 | 55 |
| 56 updateDisabledState_(el, 'notUserModifiable', event.value.disabled); | 56 updateDisabledState_(el, 'notUserModifiable', event.value.disabled); |
| 57 | 57 |
| 58 el.controlledBy = event.value['controlledBy']; | 58 el.controlledBy = event.value['controlledBy']; |
| 59 | 59 |
| 60 OptionsPage.updateManagedBannerVisibility(); | 60 BrowserOptions.updateManagedBannerVisibility(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 ///////////////////////////////////////////////////////////////////////////// | 63 ///////////////////////////////////////////////////////////////////////////// |
| 64 // PrefCheckbox class: | 64 // PrefCheckbox class: |
| 65 // TODO(jhawkins): Refactor all this copy-pasted code! | 65 // TODO(jhawkins): Refactor all this copy-pasted code! |
| 66 | 66 |
| 67 // Define a constructor that uses an input element as its underlying element. | 67 // Define a constructor that uses an input element as its underlying element. |
| 68 var PrefCheckbox = cr.ui.define('input'); | 68 var PrefCheckbox = cr.ui.define('input'); |
| 69 | 69 |
| 70 PrefCheckbox.prototype = { | 70 PrefCheckbox.prototype = { |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 PrefNumber: PrefNumber, | 745 PrefNumber: PrefNumber, |
| 746 PrefNumeric: PrefNumeric, | 746 PrefNumeric: PrefNumeric, |
| 747 PrefRadio: PrefRadio, | 747 PrefRadio: PrefRadio, |
| 748 PrefRange: PrefRange, | 748 PrefRange: PrefRange, |
| 749 PrefSelect: PrefSelect, | 749 PrefSelect: PrefSelect, |
| 750 PrefTextField: PrefTextField, | 750 PrefTextField: PrefTextField, |
| 751 PrefButton: PrefButton | 751 PrefButton: PrefButton |
| 752 }; | 752 }; |
| 753 | 753 |
| 754 }); | 754 }); |
| OLD | NEW |