| 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 cr.exportPath('options'); | 5 cr.exportPath('options'); |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @typedef {{actionLinkText: (string|undefined), | 8 * @typedef {{actionLinkText: (string|undefined), |
| 9 * childUser: (boolean|undefined), | 9 * childUser: (boolean|undefined), |
| 10 * hasError: (boolean|undefined), | 10 * hasError: (boolean|undefined), |
| (...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1730 /** | 1730 /** |
| 1731 * Enables or disables the Manage SSL Certificates button. | 1731 * Enables or disables the Manage SSL Certificates button. |
| 1732 * @private | 1732 * @private |
| 1733 */ | 1733 */ |
| 1734 enableCertificateButton_: function(enabled) { | 1734 enableCertificateButton_: function(enabled) { |
| 1735 $('certificatesManageButton').disabled = !enabled; | 1735 $('certificatesManageButton').disabled = !enabled; |
| 1736 }, | 1736 }, |
| 1737 | 1737 |
| 1738 /** | 1738 /** |
| 1739 * Enables or disables the Chrome OS display settings button and overlay. | 1739 * Enables or disables the Chrome OS display settings button and overlay. |
| 1740 * @param {boolean} enabled | 1740 * @param {boolean} uiEnabled |
| 1741 * @param {boolean} showUnifiedDesktop | 1741 * @param {boolean} unifiedEnabled |
| 1742 * @param {boolean} multiDisplayLayout | 1742 * @param {boolean} mirroredEnabled |
| 1743 * @private | 1743 * @private |
| 1744 */ | 1744 */ |
| 1745 enableDisplaySettings_: function( | 1745 enableDisplaySettings_: function( |
| 1746 enabled, showUnifiedDesktop, multiDisplayLayout) { | 1746 uiEnabled, unifiedEnabled, mirroredEnabled) { |
| 1747 if (cr.isChromeOS) { | 1747 if (cr.isChromeOS) { |
| 1748 $('display-options').disabled = !enabled; | 1748 $('display-options').disabled = !uiEnabled; |
| 1749 DisplayOptions.getInstance().setEnabled( | 1749 DisplayOptions.getInstance().setEnabled( |
| 1750 enabled, showUnifiedDesktop, multiDisplayLayout); | 1750 uiEnabled, unifiedEnabled, mirroredEnabled); |
| 1751 } | 1751 } |
| 1752 }, | 1752 }, |
| 1753 | 1753 |
| 1754 /** | 1754 /** |
| 1755 * Enables factory reset section. | 1755 * Enables factory reset section. |
| 1756 * @private | 1756 * @private |
| 1757 */ | 1757 */ |
| 1758 enableFactoryResetSection_: function() { | 1758 enableFactoryResetSection_: function() { |
| 1759 $('factory-reset-section').hidden = false; | 1759 $('factory-reset-section').hidden = false; |
| 1760 }, | 1760 }, |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2334 if (section) | 2334 if (section) |
| 2335 section.hidden = true; | 2335 section.hidden = true; |
| 2336 }; | 2336 }; |
| 2337 } | 2337 } |
| 2338 | 2338 |
| 2339 // Export | 2339 // Export |
| 2340 return { | 2340 return { |
| 2341 BrowserOptions: BrowserOptions | 2341 BrowserOptions: BrowserOptions |
| 2342 }; | 2342 }; |
| 2343 }); | 2343 }); |
| OLD | NEW |