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