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/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 unified diff | Download patch | Annotate | Revision Log
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.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 var RepeatingButton = cr.ui.RepeatingButton; 8 var RepeatingButton = cr.ui.RepeatingButton;
9 9
10 // 10 //
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 chrome.send('spokenFeedbackChange', 475 chrome.send('spokenFeedbackChange',
476 [$('accessibility-spoken-feedback-check').checked]); 476 [$('accessibility-spoken-feedback-check').checked]);
477 }; 477 };
478 478
479 $('accessibility-high-contrast-check').onchange = function(event) { 479 $('accessibility-high-contrast-check').onchange = function(event) {
480 chrome.send('highContrastChange', 480 chrome.send('highContrastChange',
481 [$('accessibility-high-contrast-check').checked]); 481 [$('accessibility-high-contrast-check').checked]);
482 }; 482 };
483 } 483 }
484 484
485 // Display management section (CrOS only).
486 if (cr.isChromeOS) {
487 $('display-options-button').onclick = function(event) {
488 OptionsPage.navigateToPage('display');
489 chrome.send('coreOptionsUserMetricsAction',
490 ['Options_Display']);
491 }
492 }
493
485 // Background mode section. 494 // Background mode section.
486 if ($('backgroundModeCheckbox')) { 495 if ($('backgroundModeCheckbox')) {
487 cr.defineProperty($('backgroundModeCheckbox'), 496 cr.defineProperty($('backgroundModeCheckbox'),
488 'controlledBy', 497 'controlledBy',
489 cr.PropertyKind.ATTR); 498 cr.PropertyKind.ATTR);
490 $('backgroundModeCheckbox').onclick = function(event) { 499 $('backgroundModeCheckbox').onclick = function(event) {
491 chrome.send('backgroundModeAction', 500 chrome.send('backgroundModeAction',
492 [String($('backgroundModeCheckbox').checked)]); 501 [String($('backgroundModeCheckbox').checked)]);
493 }; 502 };
494 } 503 }
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 1264
1256 /** 1265 /**
1257 * Show/hide touchpad settings slider. 1266 * Show/hide touchpad settings slider.
1258 * @private 1267 * @private
1259 */ 1268 */
1260 showTouchpadControls_: function(show) { 1269 showTouchpadControls_: function(show) {
1261 $('touchpad-settings').hidden = !show; 1270 $('touchpad-settings').hidden = !show;
1262 }, 1271 },
1263 1272
1264 /** 1273 /**
1274 * Show/hide the display options button on the System settings page.
1275 * @private
1276 */
1277 showDisplayOptions_: function(shoe) {
1278 $('display-options-section').hidden = !show;
1279 },
1280
1281 /**
1265 * Activate the bluetooth settings section on the System settings page. 1282 * Activate the bluetooth settings section on the System settings page.
1266 * @private 1283 * @private
1267 */ 1284 */
1268 showBluetoothSettings_: function() { 1285 showBluetoothSettings_: function() {
1269 $('bluetooth-devices').hidden = false; 1286 $('bluetooth-devices').hidden = false;
1270 }, 1287 },
1271 1288
1272 /** 1289 /**
1273 * Dectivates the bluetooth settings section from the System settings page. 1290 * Dectivates the bluetooth settings section from the System settings page.
1274 * @private 1291 * @private
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 'setPasswordGenerationSettingVisibility', 1393 'setPasswordGenerationSettingVisibility',
1377 'setProfilesInfo', 1394 'setProfilesInfo',
1378 'setScreenMagnifierCheckboxState', 1395 'setScreenMagnifierCheckboxState',
1379 'setSpokenFeedbackCheckboxState', 1396 'setSpokenFeedbackCheckboxState',
1380 'setThemesResetButtonEnabled', 1397 'setThemesResetButtonEnabled',
1381 'setupCloudPrintConnectorSection', 1398 'setupCloudPrintConnectorSection',
1382 'setupPageZoomSelector', 1399 'setupPageZoomSelector',
1383 'setupProxySettingsSection', 1400 'setupProxySettingsSection',
1384 'setVirtualKeyboardCheckboxState', 1401 'setVirtualKeyboardCheckboxState',
1385 'showBluetoothSettings', 1402 'showBluetoothSettings',
1403 'showDisplayOptions',
1386 'showMouseControls', 1404 'showMouseControls',
1387 'showTouchpadControls', 1405 'showTouchpadControls',
1388 'updateAccountPicture', 1406 'updateAccountPicture',
1389 'updateAutoLaunchState', 1407 'updateAutoLaunchState',
1390 'updateDefaultBrowserState', 1408 'updateDefaultBrowserState',
1391 'updateManagedBannerVisibility', 1409 'updateManagedBannerVisibility',
1392 'updateSearchEngines', 1410 'updateSearchEngines',
1393 'updateSyncState', 1411 'updateSyncState',
1394 'updateStartupPages', 1412 'updateStartupPages',
1395 ].forEach(function(name) { 1413 ].forEach(function(name) {
(...skipping 12 matching lines...) Expand all
1408 BrowserOptions.getLoggedInUsername = function() { 1426 BrowserOptions.getLoggedInUsername = function() {
1409 return BrowserOptions.getInstance().username_; 1427 return BrowserOptions.getInstance().username_;
1410 }; 1428 };
1411 } 1429 }
1412 1430
1413 // Export 1431 // Export
1414 return { 1432 return {
1415 BrowserOptions: BrowserOptions 1433 BrowserOptions: BrowserOptions
1416 }; 1434 };
1417 }); 1435 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698