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

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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 chrome.send('spokenFeedbackChange', 486 chrome.send('spokenFeedbackChange',
487 [$('accessibility-spoken-feedback-check').checked]); 487 [$('accessibility-spoken-feedback-check').checked]);
488 }; 488 };
489 489
490 $('accessibility-high-contrast-check').onchange = function(event) { 490 $('accessibility-high-contrast-check').onchange = function(event) {
491 chrome.send('highContrastChange', 491 chrome.send('highContrastChange',
492 [$('accessibility-high-contrast-check').checked]); 492 [$('accessibility-high-contrast-check').checked]);
493 }; 493 };
494 } 494 }
495 495
496 // Display management section (CrOS only).
497 if (cr.isChromeOS) {
498 $('display-options-button').onclick = function(event) {
499 OptionsPage.navigateToPage('display');
500 chrome.send('coreOptionsUserMetricsAction',
501 ['Options_Display']);
502 }
503 }
504
496 // Background mode section. 505 // Background mode section.
497 if ($('backgroundModeCheckbox')) { 506 if ($('backgroundModeCheckbox')) {
498 cr.defineProperty($('backgroundModeCheckbox'), 507 cr.defineProperty($('backgroundModeCheckbox'),
499 'controlledBy', 508 'controlledBy',
500 cr.PropertyKind.ATTR); 509 cr.PropertyKind.ATTR);
501 $('backgroundModeCheckbox').onclick = function(event) { 510 $('backgroundModeCheckbox').onclick = function(event) {
502 chrome.send('backgroundModeAction', 511 chrome.send('backgroundModeAction',
503 [String($('backgroundModeCheckbox').checked)]); 512 [String($('backgroundModeCheckbox').checked)]);
504 }; 513 };
505 } 514 }
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 1275
1267 /** 1276 /**
1268 * Show/hide touchpad settings slider. 1277 * Show/hide touchpad settings slider.
1269 * @private 1278 * @private
1270 */ 1279 */
1271 showTouchpadControls_: function(show) { 1280 showTouchpadControls_: function(show) {
1272 $('touchpad-settings').hidden = !show; 1281 $('touchpad-settings').hidden = !show;
1273 }, 1282 },
1274 1283
1275 /** 1284 /**
1285 * Show/hide the display options button on the System settings page.
1286 * @private
1287 */
1288 showDisplayOptions_: function(show) {
1289 $('display-options-section').hidden = !show;
1290 },
1291
1292 /**
1276 * Activate the bluetooth settings section on the System settings page. 1293 * Activate the bluetooth settings section on the System settings page.
1277 * @private 1294 * @private
1278 */ 1295 */
1279 showBluetoothSettings_: function() { 1296 showBluetoothSettings_: function() {
1280 $('bluetooth-devices').hidden = false; 1297 $('bluetooth-devices').hidden = false;
1281 }, 1298 },
1282 1299
1283 /** 1300 /**
1284 * Dectivates the bluetooth settings section from the System settings page. 1301 * Dectivates the bluetooth settings section from the System settings page.
1285 * @private 1302 * @private
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 'setPasswordGenerationSettingVisibility', 1404 'setPasswordGenerationSettingVisibility',
1388 'setProfilesInfo', 1405 'setProfilesInfo',
1389 'setScreenMagnifierCheckboxState', 1406 'setScreenMagnifierCheckboxState',
1390 'setSpokenFeedbackCheckboxState', 1407 'setSpokenFeedbackCheckboxState',
1391 'setThemesResetButtonEnabled', 1408 'setThemesResetButtonEnabled',
1392 'setupCloudPrintConnectorSection', 1409 'setupCloudPrintConnectorSection',
1393 'setupPageZoomSelector', 1410 'setupPageZoomSelector',
1394 'setupProxySettingsSection', 1411 'setupProxySettingsSection',
1395 'setVirtualKeyboardCheckboxState', 1412 'setVirtualKeyboardCheckboxState',
1396 'showBluetoothSettings', 1413 'showBluetoothSettings',
1414 'showDisplayOptions',
1397 'showMouseControls', 1415 'showMouseControls',
1398 'showTouchpadControls', 1416 'showTouchpadControls',
1399 'updateAccountPicture', 1417 'updateAccountPicture',
1400 'updateAutoLaunchState', 1418 'updateAutoLaunchState',
1401 'updateDefaultBrowserState', 1419 'updateDefaultBrowserState',
1402 'updateManagedBannerVisibility', 1420 'updateManagedBannerVisibility',
1403 'updateSearchEngines', 1421 'updateSearchEngines',
1404 'updateSyncState', 1422 'updateSyncState',
1405 'updateStartupPages', 1423 'updateStartupPages',
1406 ].forEach(function(name) { 1424 ].forEach(function(name) {
(...skipping 12 matching lines...) Expand all
1419 BrowserOptions.getLoggedInUsername = function() { 1437 BrowserOptions.getLoggedInUsername = function() {
1420 return BrowserOptions.getInstance().username_; 1438 return BrowserOptions.getInstance().username_;
1421 }; 1439 };
1422 } 1440 }
1423 1441
1424 // Export 1442 // Export
1425 return { 1443 return {
1426 BrowserOptions: BrowserOptions 1444 BrowserOptions: BrowserOptions
1427 }; 1445 };
1428 }); 1446 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/browser_options.html ('k') | chrome/browser/resources/options2/chromeos/display_options.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698