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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 $('accessibility-spoken-feedback-check').onchange = function(event) { | 435 $('accessibility-spoken-feedback-check').onchange = function(event) { |
436 chrome.send('spokenFeedbackChange', | 436 chrome.send('spokenFeedbackChange', |
437 [$('accessibility-spoken-feedback-check').checked]); | 437 [$('accessibility-spoken-feedback-check').checked]); |
438 }; | 438 }; |
439 | 439 |
440 $('accessibility-high-contrast-check').onchange = function(event) { | 440 $('accessibility-high-contrast-check').onchange = function(event) { |
441 chrome.send('highContrastChange', | 441 chrome.send('highContrastChange', |
442 [$('accessibility-high-contrast-check').checked]); | 442 [$('accessibility-high-contrast-check').checked]); |
443 }; | 443 }; |
444 | 444 |
445 $('accessibility-screen-magnifier-check').onchange = function(event) { | 445 $('accessibility-screen-magnifier-type').onchange = function(event) { |
446 chrome.send('screenMagnifierChange', | 446 chrome.send('screenMagnifierChange', |
447 [$('accessibility-screen-magnifier-check').checked]); | 447 [$('accessibility-screen-magnifier-type').value]); |
448 }; | 448 }; |
449 } | 449 } |
450 | 450 |
451 // Display management section (CrOS only). | 451 // Display management section (CrOS only). |
452 if (cr.isChromeOS) { | 452 if (cr.isChromeOS) { |
453 $('display-options').onclick = function(event) { | 453 $('display-options').onclick = function(event) { |
454 OptionsPage.navigateToPage('display'); | 454 OptionsPage.navigateToPage('display'); |
455 chrome.send('coreOptionsUserMetricsAction', | 455 chrome.send('coreOptionsUserMetricsAction', |
456 ['Options_Display']); | 456 ['Options_Display']); |
457 }; | 457 }; |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 | 1164 |
1165 /** | 1165 /** |
1166 * Set the initial state of the high contrast checkbox. | 1166 * Set the initial state of the high contrast checkbox. |
1167 * @private | 1167 * @private |
1168 */ | 1168 */ |
1169 setHighContrastCheckboxState_: function(checked) { | 1169 setHighContrastCheckboxState_: function(checked) { |
1170 $('accessibility-high-contrast-check').checked = checked; | 1170 $('accessibility-high-contrast-check').checked = checked; |
1171 }, | 1171 }, |
1172 | 1172 |
1173 /** | 1173 /** |
1174 * Set the initial state of the screen magnifier checkbox. | 1174 * Set the initial state of the screen magnifier dropdown. |
1175 * @private | 1175 * @private |
1176 */ | 1176 */ |
1177 setScreenMagnifierCheckboxState_: function(checked) { | 1177 setScreenMagnifierTypeState_: function(type) { |
1178 $('accessibility-screen-magnifier-check').checked = checked; | 1178 $('accessibility-screen-magnifier-type').value = type; |
1179 }, | 1179 }, |
1180 | 1180 |
1181 /** | 1181 /** |
1182 * Set the initial state of the virtual keyboard checkbox. | 1182 * Set the initial state of the virtual keyboard checkbox. |
1183 * @private | 1183 * @private |
1184 */ | 1184 */ |
1185 setVirtualKeyboardCheckboxState_: function(checked) { | 1185 setVirtualKeyboardCheckboxState_: function(checked) { |
1186 // TODO(zork): Update UI | 1186 // TODO(zork): Update UI |
1187 }, | 1187 }, |
1188 | 1188 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 'setBackgroundModeCheckboxState', | 1312 'setBackgroundModeCheckboxState', |
1313 'setBluetoothState', | 1313 'setBluetoothState', |
1314 'setCheckRevocationCheckboxState', | 1314 'setCheckRevocationCheckboxState', |
1315 'setFontSize', | 1315 'setFontSize', |
1316 'setGtkThemeButtonEnabled', | 1316 'setGtkThemeButtonEnabled', |
1317 'setHighContrastCheckboxState', | 1317 'setHighContrastCheckboxState', |
1318 'setMetricsReportingCheckboxState', | 1318 'setMetricsReportingCheckboxState', |
1319 'setMetricsReportingSettingVisibility', | 1319 'setMetricsReportingSettingVisibility', |
1320 'setPasswordGenerationSettingVisibility', | 1320 'setPasswordGenerationSettingVisibility', |
1321 'setProfilesInfo', | 1321 'setProfilesInfo', |
1322 'setScreenMagnifierCheckboxState', | 1322 'setScreenMagnifierTypeState', |
1323 'setSpokenFeedbackCheckboxState', | 1323 'setSpokenFeedbackCheckboxState', |
1324 'setThemesResetButtonEnabled', | 1324 'setThemesResetButtonEnabled', |
1325 'setupCloudPrintConnectorSection', | 1325 'setupCloudPrintConnectorSection', |
1326 'setupPageZoomSelector', | 1326 'setupPageZoomSelector', |
1327 'setupProxySettingsSection', | 1327 'setupProxySettingsSection', |
1328 'setVirtualKeyboardCheckboxState', | 1328 'setVirtualKeyboardCheckboxState', |
1329 'showBluetoothSettings', | 1329 'showBluetoothSettings', |
1330 'showDisplayOptions', | 1330 'showDisplayOptions', |
1331 'showMouseControls', | 1331 'showMouseControls', |
1332 'showTouchpadControls', | 1332 'showTouchpadControls', |
(...skipping 20 matching lines...) Expand all Loading... |
1353 BrowserOptions.getLoggedInUsername = function() { | 1353 BrowserOptions.getLoggedInUsername = function() { |
1354 return BrowserOptions.getInstance().username_; | 1354 return BrowserOptions.getInstance().username_; |
1355 }; | 1355 }; |
1356 } | 1356 } |
1357 | 1357 |
1358 // Export | 1358 // Export |
1359 return { | 1359 return { |
1360 BrowserOptions: BrowserOptions | 1360 BrowserOptions: BrowserOptions |
1361 }; | 1361 }; |
1362 }); | 1362 }); |
OLD | NEW |