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

Unified Diff: chrome/browser/resources/options2/browser_options.js

Issue 10544171: Add OptionsUI and its handler for multiple displays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options2/browser_options.js
diff --git a/chrome/browser/resources/options2/browser_options.js b/chrome/browser/resources/options2/browser_options.js
index 9495aaed659d7a446b5f88a17c6c93a51689cd26..d38e7097b7ef8b1f26680bef72f2692e08fc4a5a 100644
--- a/chrome/browser/resources/options2/browser_options.js
+++ b/chrome/browser/resources/options2/browser_options.js
@@ -482,6 +482,15 @@ cr.define('options', function() {
};
}
+ // Display management section (CrOS only).
+ if (cr.isChromeOS) {
+ $('display-options-button').onclick = function(event) {
+ OptionsPage.navigateToPage('display');
+ chrome.send('coreOptionsUserMetricsAction',
+ ['Options_Display']);
+ }
+ }
+
// Background mode section.
if ($('backgroundModeCheckbox')) {
cr.defineProperty($('backgroundModeCheckbox'),
@@ -1262,6 +1271,14 @@ cr.define('options', function() {
},
/**
+ * Show/hide the display options button on the System settings page.
+ * @private
+ */
+ showDisplayOptions_: function(shoe) {
+ $('display-options-section').hidden = !show;
+ },
+
+ /**
* Activate the bluetooth settings section on the System settings page.
* @private
*/
@@ -1383,6 +1400,7 @@ cr.define('options', function() {
'setupProxySettingsSection',
'setVirtualKeyboardCheckboxState',
'showBluetoothSettings',
+ 'showDisplayOptions',
'showMouseControls',
'showTouchpadControls',
'updateAccountPicture',

Powered by Google App Engine
This is Rietveld 408576698