| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 $('accessibility-spoken-feedback-check').onchange = function(event) { | 385 $('accessibility-spoken-feedback-check').onchange = function(event) { |
| 386 chrome.send('spokenFeedbackChange', | 386 chrome.send('spokenFeedbackChange', |
| 387 [$('accessibility-spoken-feedback-check').checked]); | 387 [$('accessibility-spoken-feedback-check').checked]); |
| 388 }; | 388 }; |
| 389 | 389 |
| 390 $('accessibility-high-contrast-check').onchange = function(event) { | 390 $('accessibility-high-contrast-check').onchange = function(event) { |
| 391 chrome.send('highContrastChange', | 391 chrome.send('highContrastChange', |
| 392 [$('accessibility-high-contrast-check').checked]); | 392 [$('accessibility-high-contrast-check').checked]); |
| 393 }; | 393 }; |
| 394 | 394 |
| 395 $('accessibility-screen-magnifier-check').onchange = function(event) { | 395 $('accessibility-screen-magnifier-type').onchange = function(event) { |
| 396 chrome.send('screenMagnifierChange', | 396 chrome.send('screenMagnifierChange', |
| 397 [$('accessibility-screen-magnifier-check').checked]); | 397 [$('accessibility-screen-magnifier-type').value]); |
| 398 }; | 398 }; |
| 399 } | 399 } |
| 400 | 400 |
| 401 // Display management section (CrOS only). | 401 // Display management section (CrOS only). |
| 402 if (cr.isChromeOS) { | 402 if (cr.isChromeOS) { |
| 403 $('display-options').onclick = function(event) { | 403 $('display-options').onclick = function(event) { |
| 404 OptionsPage.navigateToPage('display'); | 404 OptionsPage.navigateToPage('display'); |
| 405 chrome.send('coreOptionsUserMetricsAction', | 405 chrome.send('coreOptionsUserMetricsAction', |
| 406 ['Options_Display']); | 406 ['Options_Display']); |
| 407 }; | 407 }; |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 | 1147 |
| 1148 /** | 1148 /** |
| 1149 * Set the initial state of the high contrast checkbox. | 1149 * Set the initial state of the high contrast checkbox. |
| 1150 * @private | 1150 * @private |
| 1151 */ | 1151 */ |
| 1152 setHighContrastCheckboxState_: function(checked) { | 1152 setHighContrastCheckboxState_: function(checked) { |
| 1153 $('accessibility-high-contrast-check').checked = checked; | 1153 $('accessibility-high-contrast-check').checked = checked; |
| 1154 }, | 1154 }, |
| 1155 | 1155 |
| 1156 /** | 1156 /** |
| 1157 * Set the initial state of the screen magnifier checkbox. | 1157 * Set the initial state of the screen magnifier dropdown. |
| 1158 * @private | 1158 * @private |
| 1159 */ | 1159 */ |
| 1160 setScreenMagnifierCheckboxState_: function(checked) { | 1160 setScreenMagnifierTypeState_: function(type) { |
| 1161 $('accessibility-screen-magnifier-check').checked = checked; | 1161 $('accessibility-screen-magnifier-type').value = type; |
| 1162 }, | 1162 }, |
| 1163 | 1163 |
| 1164 /** | 1164 /** |
| 1165 * Set the initial state of the virtual keyboard checkbox. | 1165 * Set the initial state of the virtual keyboard checkbox. |
| 1166 * @private | 1166 * @private |
| 1167 */ | 1167 */ |
| 1168 setVirtualKeyboardCheckboxState_: function(checked) { | 1168 setVirtualKeyboardCheckboxState_: function(checked) { |
| 1169 // TODO(zork): Update UI | 1169 // TODO(zork): Update UI |
| 1170 }, | 1170 }, |
| 1171 | 1171 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 'scrollToSection', | 1295 'scrollToSection', |
| 1296 'setAutoOpenFileTypesDisplayed', | 1296 'setAutoOpenFileTypesDisplayed', |
| 1297 'setBluetoothState', | 1297 'setBluetoothState', |
| 1298 'setFontSize', | 1298 'setFontSize', |
| 1299 'setGtkThemeButtonEnabled', | 1299 'setGtkThemeButtonEnabled', |
| 1300 'setHighContrastCheckboxState', | 1300 'setHighContrastCheckboxState', |
| 1301 'setMetricsReportingCheckboxState', | 1301 'setMetricsReportingCheckboxState', |
| 1302 'setMetricsReportingSettingVisibility', | 1302 'setMetricsReportingSettingVisibility', |
| 1303 'setPasswordGenerationSettingVisibility', | 1303 'setPasswordGenerationSettingVisibility', |
| 1304 'setProfilesInfo', | 1304 'setProfilesInfo', |
| 1305 'setScreenMagnifierCheckboxState', | 1305 'setScreenMagnifierTypeState', |
| 1306 'setSpokenFeedbackCheckboxState', | 1306 'setSpokenFeedbackCheckboxState', |
| 1307 'setThemesResetButtonEnabled', | 1307 'setThemesResetButtonEnabled', |
| 1308 'setVirtualKeyboardCheckboxState', | 1308 'setVirtualKeyboardCheckboxState', |
| 1309 'setupCloudPrintConnectorSection', | 1309 'setupCloudPrintConnectorSection', |
| 1310 'setupPageZoomSelector', | 1310 'setupPageZoomSelector', |
| 1311 'setupProxySettingsSection', | 1311 'setupProxySettingsSection', |
| 1312 'showBluetoothSettings', | 1312 'showBluetoothSettings', |
| 1313 'showDisplayOptions', | 1313 'showDisplayOptions', |
| 1314 'showMouseControls', | 1314 'showMouseControls', |
| 1315 'showTouchpadControls', | 1315 'showTouchpadControls', |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1335 BrowserOptions.getLoggedInUsername = function() { | 1335 BrowserOptions.getLoggedInUsername = function() { |
| 1336 return BrowserOptions.getInstance().username_; | 1336 return BrowserOptions.getInstance().username_; |
| 1337 }; | 1337 }; |
| 1338 } | 1338 } |
| 1339 | 1339 |
| 1340 // Export | 1340 // Export |
| 1341 return { | 1341 return { |
| 1342 BrowserOptions: BrowserOptions | 1342 BrowserOptions: BrowserOptions |
| 1343 }; | 1343 }; |
| 1344 }); | 1344 }); |
| OLD | NEW |