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

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 1844783002: Only enable mirroring for 2 displays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass mirrorEnabled explicitly, cleanup Created 4 years, 8 months 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 | « no previous file | chrome/browser/resources/options/chromeos/display_options.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/options/chromeos/display_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698