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