Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 10915140: Add the partial screen magnifier to Chrome OS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code review fixes Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 $('accessibility-spoken-feedback-check').onchange = function(event) { 433 $('accessibility-spoken-feedback-check').onchange = function(event) {
434 chrome.send('spokenFeedbackChange', 434 chrome.send('spokenFeedbackChange',
435 [$('accessibility-spoken-feedback-check').checked]); 435 [$('accessibility-spoken-feedback-check').checked]);
436 }; 436 };
437 437
438 $('accessibility-high-contrast-check').onchange = function(event) { 438 $('accessibility-high-contrast-check').onchange = function(event) {
439 chrome.send('highContrastChange', 439 chrome.send('highContrastChange',
440 [$('accessibility-high-contrast-check').checked]); 440 [$('accessibility-high-contrast-check').checked]);
441 }; 441 };
442 442
443 $('accessibility-screen-magnifier-check').onchange = function(event) { 443 $('accessibility-screen-magnifier-type').onchange = function(event) {
444 chrome.send('screenMagnifierChange', 444 chrome.send('screenMagnifierChange',
445 [$('accessibility-screen-magnifier-check').checked]); 445 [$('accessibility-screen-magnifier-type').value]);
446 }; 446 };
447 } 447 }
448 448
449 // Display management section (CrOS only). 449 // Display management section (CrOS only).
450 if (cr.isChromeOS) { 450 if (cr.isChromeOS) {
451 $('display-options').onclick = function(event) { 451 $('display-options').onclick = function(event) {
452 OptionsPage.navigateToPage('display'); 452 OptionsPage.navigateToPage('display');
453 chrome.send('coreOptionsUserMetricsAction', 453 chrome.send('coreOptionsUserMetricsAction',
454 ['Options_Display']); 454 ['Options_Display']);
455 }; 455 };
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 1148
1149 /** 1149 /**
1150 * Set the initial state of the high contrast checkbox. 1150 * Set the initial state of the high contrast checkbox.
1151 * @private 1151 * @private
1152 */ 1152 */
1153 setHighContrastCheckboxState_: function(checked) { 1153 setHighContrastCheckboxState_: function(checked) {
1154 $('accessibility-high-contrast-check').checked = checked; 1154 $('accessibility-high-contrast-check').checked = checked;
1155 }, 1155 },
1156 1156
1157 /** 1157 /**
1158 * Set the initial state of the screen magnifier checkbox. 1158 * Set the initial state of the screen magnifier dropdown.
1159 * @private 1159 * @private
1160 */ 1160 */
1161 setScreenMagnifierCheckboxState_: function(checked) { 1161 setScreenMagnifierTypeState_: function(type) {
1162 $('accessibility-screen-magnifier-check').checked = checked; 1162 $('accessibility-screen-magnifier-type').value = type;
1163 }, 1163 },
1164 1164
1165 /** 1165 /**
1166 * Set the initial state of the virtual keyboard checkbox. 1166 * Set the initial state of the virtual keyboard checkbox.
1167 * @private 1167 * @private
1168 */ 1168 */
1169 setVirtualKeyboardCheckboxState_: function(checked) { 1169 setVirtualKeyboardCheckboxState_: function(checked) {
1170 // TODO(zork): Update UI 1170 // TODO(zork): Update UI
1171 }, 1171 },
1172 1172
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 'removeCloudPrintConnectorSection', 1295 'removeCloudPrintConnectorSection',
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 20 matching lines...) Expand all
1336 BrowserOptions.getLoggedInUsername = function() { 1336 BrowserOptions.getLoggedInUsername = function() {
1337 return BrowserOptions.getInstance().username_; 1337 return BrowserOptions.getInstance().username_;
1338 }; 1338 };
1339 } 1339 }
1340 1340
1341 // Export 1341 // Export
1342 return { 1342 return {
1343 BrowserOptions: BrowserOptions 1343 BrowserOptions: BrowserOptions
1344 }; 1344 };
1345 }); 1345 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698