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 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1184 | 1184 |
1185 /** | 1185 /** |
1186 * Show/hide touchpad settings slider. | 1186 * Show/hide touchpad settings slider. |
1187 * @private | 1187 * @private |
1188 */ | 1188 */ |
1189 showTouchpadControls_: function(show) { | 1189 showTouchpadControls_: function(show) { |
1190 $('touchpad-settings').hidden = !show; | 1190 $('touchpad-settings').hidden = !show; |
1191 }, | 1191 }, |
1192 | 1192 |
1193 /** | 1193 /** |
1194 * Show/hide Windows 8 data privacy warning. | |
1195 * @private | |
1196 */ | |
1197 showWin8DataPrivacy_: function() { | |
1198 $('privacy-win8-data-settings').hidden = false; | |
arv (Not doing code reviews)
2012/08/15 14:33:31
How about, in initializePage we do:
var m = /Wind
MAD
2012/08/15 19:29:41
Ho! Cool, I didn't think about that...
Thanks!...
| |
1199 }, | |
1200 | |
1201 /** | |
1194 * Show/hide the display options button on the System settings page. | 1202 * Show/hide the display options button on the System settings page. |
1195 * @private | 1203 * @private |
1196 */ | 1204 */ |
1197 showDisplayOptions_: function(show) { | 1205 showDisplayOptions_: function(show) { |
1198 $('display-options-section').hidden = !show; | 1206 $('display-options-section').hidden = !show; |
1199 }, | 1207 }, |
1200 | 1208 |
1201 /** | 1209 /** |
1202 * Activate the bluetooth settings section on the System settings page. | 1210 * Activate the bluetooth settings section on the System settings page. |
1203 * @private | 1211 * @private |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1311 'setSpokenFeedbackCheckboxState', | 1319 'setSpokenFeedbackCheckboxState', |
1312 'setThemesResetButtonEnabled', | 1320 'setThemesResetButtonEnabled', |
1313 'setupCloudPrintConnectorSection', | 1321 'setupCloudPrintConnectorSection', |
1314 'setupPageZoomSelector', | 1322 'setupPageZoomSelector', |
1315 'setupProxySettingsSection', | 1323 'setupProxySettingsSection', |
1316 'setVirtualKeyboardCheckboxState', | 1324 'setVirtualKeyboardCheckboxState', |
1317 'showBluetoothSettings', | 1325 'showBluetoothSettings', |
1318 'showDisplayOptions', | 1326 'showDisplayOptions', |
1319 'showMouseControls', | 1327 'showMouseControls', |
1320 'showTouchpadControls', | 1328 'showTouchpadControls', |
1329 'showWin8DataPrivacy', | |
1321 'updateAccountPicture', | 1330 'updateAccountPicture', |
1322 'updateAutoLaunchState', | 1331 'updateAutoLaunchState', |
1323 'updateDefaultBrowserState', | 1332 'updateDefaultBrowserState', |
1324 'updateManagedBannerVisibility', | 1333 'updateManagedBannerVisibility', |
1325 'updateSearchEngines', | 1334 'updateSearchEngines', |
1326 'updateSyncState', | 1335 'updateSyncState', |
1327 'updateStartupPages', | 1336 'updateStartupPages', |
1328 ].forEach(function(name) { | 1337 ].forEach(function(name) { |
1329 BrowserOptions[name] = function() { | 1338 BrowserOptions[name] = function() { |
1330 var instance = BrowserOptions.getInstance(); | 1339 var instance = BrowserOptions.getInstance(); |
(...skipping 10 matching lines...) Expand all Loading... | |
1341 BrowserOptions.getLoggedInUsername = function() { | 1350 BrowserOptions.getLoggedInUsername = function() { |
1342 return BrowserOptions.getInstance().username_; | 1351 return BrowserOptions.getInstance().username_; |
1343 }; | 1352 }; |
1344 } | 1353 } |
1345 | 1354 |
1346 // Export | 1355 // Export |
1347 return { | 1356 return { |
1348 BrowserOptions: BrowserOptions | 1357 BrowserOptions: BrowserOptions |
1349 }; | 1358 }; |
1350 }); | 1359 }); |
OLD | NEW |