| 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 if (cr.isChromeOS) { | 397 if (cr.isChromeOS) { |
| 398 $('accessibility-spoken-feedback-check').onchange = function(event) { | 398 $('accessibility-spoken-feedback-check').onchange = function(event) { |
| 399 chrome.send('spokenFeedbackChange', | 399 chrome.send('spokenFeedbackChange', |
| 400 [$('accessibility-spoken-feedback-check').checked]); | 400 [$('accessibility-spoken-feedback-check').checked]); |
| 401 }; | 401 }; |
| 402 | 402 |
| 403 $('accessibility-high-contrast-check').onchange = function(event) { | 403 $('accessibility-high-contrast-check').onchange = function(event) { |
| 404 chrome.send('highContrastChange', | 404 chrome.send('highContrastChange', |
| 405 [$('accessibility-high-contrast-check').checked]); | 405 [$('accessibility-high-contrast-check').checked]); |
| 406 }; | 406 }; |
| 407 | |
| 408 $('accessibility-screen-magnifier-type').onchange = function(event) { | |
| 409 chrome.send('screenMagnifierChange', | |
| 410 [$('accessibility-screen-magnifier-type').value]); | |
| 411 }; | |
| 412 } | 407 } |
| 413 | 408 |
| 414 // Display management section (CrOS only). | 409 // Display management section (CrOS only). |
| 415 if (cr.isChromeOS) { | 410 if (cr.isChromeOS) { |
| 416 $('display-options').onclick = function(event) { | 411 $('display-options').onclick = function(event) { |
| 417 OptionsPage.navigateToPage('display'); | 412 OptionsPage.navigateToPage('display'); |
| 418 chrome.send('coreOptionsUserMetricsAction', | 413 chrome.send('coreOptionsUserMetricsAction', |
| 419 ['Options_Display']); | 414 ['Options_Display']); |
| 420 }; | 415 }; |
| 421 } | 416 } |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 | 1174 |
| 1180 /** | 1175 /** |
| 1181 * Set the initial state of the high contrast checkbox. | 1176 * Set the initial state of the high contrast checkbox. |
| 1182 * @private | 1177 * @private |
| 1183 */ | 1178 */ |
| 1184 setHighContrastCheckboxState_: function(checked) { | 1179 setHighContrastCheckboxState_: function(checked) { |
| 1185 $('accessibility-high-contrast-check').checked = checked; | 1180 $('accessibility-high-contrast-check').checked = checked; |
| 1186 }, | 1181 }, |
| 1187 | 1182 |
| 1188 /** | 1183 /** |
| 1189 * Set the initial state of the screen magnifier dropdown. | |
| 1190 * @private | |
| 1191 */ | |
| 1192 setMagnifierTypeState_: function(type) { | |
| 1193 $('accessibility-screen-magnifier-type').value = type; | |
| 1194 }, | |
| 1195 | |
| 1196 /** | |
| 1197 * Set the initial state of the virtual keyboard checkbox. | 1184 * Set the initial state of the virtual keyboard checkbox. |
| 1198 * @private | 1185 * @private |
| 1199 */ | 1186 */ |
| 1200 setVirtualKeyboardCheckboxState_: function(checked) { | 1187 setVirtualKeyboardCheckboxState_: function(checked) { |
| 1201 // TODO(zork): Update UI | 1188 // TODO(zork): Update UI |
| 1202 }, | 1189 }, |
| 1203 | 1190 |
| 1204 /** | 1191 /** |
| 1205 * Show/hide mouse settings slider. | 1192 * Show/hide mouse settings slider. |
| 1206 * @private | 1193 * @private |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 'scrollToSection', | 1315 'scrollToSection', |
| 1329 'setAutoOpenFileTypesDisplayed', | 1316 'setAutoOpenFileTypesDisplayed', |
| 1330 'setBluetoothState', | 1317 'setBluetoothState', |
| 1331 'setFontSize', | 1318 'setFontSize', |
| 1332 'setGtkThemeButtonEnabled', | 1319 'setGtkThemeButtonEnabled', |
| 1333 'setHighContrastCheckboxState', | 1320 'setHighContrastCheckboxState', |
| 1334 'setMetricsReportingCheckboxState', | 1321 'setMetricsReportingCheckboxState', |
| 1335 'setMetricsReportingSettingVisibility', | 1322 'setMetricsReportingSettingVisibility', |
| 1336 'setPasswordGenerationSettingVisibility', | 1323 'setPasswordGenerationSettingVisibility', |
| 1337 'setProfilesInfo', | 1324 'setProfilesInfo', |
| 1338 'setMagnifierTypeState', | |
| 1339 'setSpokenFeedbackCheckboxState', | 1325 'setSpokenFeedbackCheckboxState', |
| 1340 'setThemesResetButtonEnabled', | 1326 'setThemesResetButtonEnabled', |
| 1341 'setVirtualKeyboardCheckboxState', | 1327 'setVirtualKeyboardCheckboxState', |
| 1342 'setupCloudPrintConnectorSection', | 1328 'setupCloudPrintConnectorSection', |
| 1343 'setupPageZoomSelector', | 1329 'setupPageZoomSelector', |
| 1344 'setupProxySettingsSection', | 1330 'setupProxySettingsSection', |
| 1345 'showBluetoothSettings', | 1331 'showBluetoothSettings', |
| 1346 'showDisplayOptions', | 1332 'showDisplayOptions', |
| 1347 'showMouseControls', | 1333 'showMouseControls', |
| 1348 'showTouchpadControls', | 1334 'showTouchpadControls', |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1368 BrowserOptions.getLoggedInUsername = function() { | 1354 BrowserOptions.getLoggedInUsername = function() { |
| 1369 return BrowserOptions.getInstance().username_; | 1355 return BrowserOptions.getInstance().username_; |
| 1370 }; | 1356 }; |
| 1371 } | 1357 } |
| 1372 | 1358 |
| 1373 // Export | 1359 // Export |
| 1374 return { | 1360 return { |
| 1375 BrowserOptions: BrowserOptions | 1361 BrowserOptions: BrowserOptions |
| 1376 }; | 1362 }; |
| 1377 }); | 1363 }); |
| OLD | NEW |