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.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 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1286 /** | 1286 /** |
1287 * Show/hide touchpad-related settings. | 1287 * Show/hide touchpad-related settings. |
1288 * @private | 1288 * @private |
1289 */ | 1289 */ |
1290 showTouchpadControls_: function(show) { | 1290 showTouchpadControls_: function(show) { |
1291 $('touchpad-settings').hidden = !show; | 1291 $('touchpad-settings').hidden = !show; |
1292 $('accessibility-tap-dragging').hidden = !show; | 1292 $('accessibility-tap-dragging').hidden = !show; |
1293 }, | 1293 }, |
1294 | 1294 |
1295 /** | 1295 /** |
1296 * Show/hide the display options button on the System settings page. | |
1297 * @private | |
1298 */ | |
1299 showDisplayOptions_: function(show) { | |
1300 $('display-options-section').hidden = !show; | |
1301 }, | |
1302 | |
1303 /** | |
1304 * Activate the Bluetooth settings section on the System settings page. | 1296 * Activate the Bluetooth settings section on the System settings page. |
1305 * @private | 1297 * @private |
1306 */ | 1298 */ |
1307 showBluetoothSettings_: function() { | 1299 showBluetoothSettings_: function() { |
1308 $('bluetooth-devices').hidden = false; | 1300 $('bluetooth-devices').hidden = false; |
1309 }, | 1301 }, |
1310 | 1302 |
1311 /** | 1303 /** |
1312 * Dectivates the Bluetooth settings section from the System settings page. | 1304 * Dectivates the Bluetooth settings section from the System settings page. |
1313 * @private | 1305 * @private |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 'setMetricsReportingSettingVisibility', | 1402 'setMetricsReportingSettingVisibility', |
1411 'setPasswordGenerationSettingVisibility', | 1403 'setPasswordGenerationSettingVisibility', |
1412 'setProfilesInfo', | 1404 'setProfilesInfo', |
1413 'setSpokenFeedbackCheckboxState', | 1405 'setSpokenFeedbackCheckboxState', |
1414 'setThemesResetButtonEnabled', | 1406 'setThemesResetButtonEnabled', |
1415 'setVirtualKeyboardCheckboxState', | 1407 'setVirtualKeyboardCheckboxState', |
1416 'setupCloudPrintConnectorSection', | 1408 'setupCloudPrintConnectorSection', |
1417 'setupPageZoomSelector', | 1409 'setupPageZoomSelector', |
1418 'setupProxySettingsSection', | 1410 'setupProxySettingsSection', |
1419 'showBluetoothSettings', | 1411 'showBluetoothSettings', |
1420 'showDisplayOptions', | |
1421 'showMouseControls', | 1412 'showMouseControls', |
1422 'showTouchpadControls', | 1413 'showTouchpadControls', |
1423 'updateAccountPicture', | 1414 'updateAccountPicture', |
1424 'updateAutoLaunchState', | 1415 'updateAutoLaunchState', |
1425 'updateDefaultBrowserState', | 1416 'updateDefaultBrowserState', |
1426 'updateInstantCheckboxState', | 1417 'updateInstantCheckboxState', |
1427 'updateSearchEngines', | 1418 'updateSearchEngines', |
1428 'updateStartupPages', | 1419 'updateStartupPages', |
1429 'updateSyncState', | 1420 'updateSyncState', |
1430 ].forEach(function(name) { | 1421 ].forEach(function(name) { |
(...skipping 12 matching lines...) Expand all Loading... |
1443 BrowserOptions.getLoggedInUsername = function() { | 1434 BrowserOptions.getLoggedInUsername = function() { |
1444 return BrowserOptions.getInstance().username_; | 1435 return BrowserOptions.getInstance().username_; |
1445 }; | 1436 }; |
1446 } | 1437 } |
1447 | 1438 |
1448 // Export | 1439 // Export |
1449 return { | 1440 return { |
1450 BrowserOptions: BrowserOptions | 1441 BrowserOptions: BrowserOptions |
1451 }; | 1442 }; |
1452 }); | 1443 }); |
OLD | NEW |