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

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

Issue 10407089: Revert 138212 - Implement High Contrast mode for Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/options2/browser_options.html ('k') | ui/compositor/layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 }; 457 };
458 } 458 }
459 $('cloudPrintManageButton').onclick = function(event) { 459 $('cloudPrintManageButton').onclick = function(event) {
460 chrome.send('showCloudPrintManagePage'); 460 chrome.send('showCloudPrintManagePage');
461 }; 461 };
462 462
463 // Accessibility section (CrOS only). 463 // Accessibility section (CrOS only).
464 if (cr.isChromeOS) { 464 if (cr.isChromeOS) {
465 $('accessibility-spoken-feedback-check').onchange = function(event) { 465 $('accessibility-spoken-feedback-check').onchange = function(event) {
466 chrome.send('spokenFeedbackChange', 466 chrome.send('spokenFeedbackChange',
467 [$('accessibility-spoken-feedback-check').checked]); 467 [$('accessibility-spoken-feedback-check').checked]);
468 };
469
470 $('accessibility-high-contrast-check').onchange = function(event) {
471 chrome.send('highContrastChange',
472 [$('accessibility-high-contrast-check').checked]);
473 }; 468 };
474 } 469 }
475 470
476 // Background mode section. 471 // Background mode section.
477 if ($('backgroundModeCheckbox')) { 472 if ($('backgroundModeCheckbox')) {
478 cr.defineProperty($('backgroundModeCheckbox'), 473 cr.defineProperty($('backgroundModeCheckbox'),
479 'controlledBy', 474 'controlledBy',
480 cr.PropertyKind.ATTR); 475 cr.PropertyKind.ATTR);
481 $('backgroundModeCheckbox').onclick = function(event) { 476 $('backgroundModeCheckbox').onclick = function(event) {
482 chrome.send('backgroundModeAction', 477 chrome.send('backgroundModeAction',
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 */ 1205 */
1211 setSpokenFeedbackCheckboxState_: function(checked) { 1206 setSpokenFeedbackCheckboxState_: function(checked) {
1212 $('accessibility-spoken-feedback-check').checked = checked; 1207 $('accessibility-spoken-feedback-check').checked = checked;
1213 }, 1208 },
1214 1209
1215 /** 1210 /**
1216 * Set the initial state of the high contrast checkbox. 1211 * Set the initial state of the high contrast checkbox.
1217 * @private 1212 * @private
1218 */ 1213 */
1219 setHighContrastCheckboxState_: function(checked) { 1214 setHighContrastCheckboxState_: function(checked) {
1220 $('accessibility-high-contrast-check').checked = checked; 1215 // TODO(zork): Update UI
1221 }, 1216 },
1222 1217
1223 /** 1218 /**
1224 * Set the initial state of the screen magnifier checkbox. 1219 * Set the initial state of the screen magnifier checkbox.
1225 * @private 1220 * @private
1226 */ 1221 */
1227 setScreenMagnifierCheckboxState_: function(checked) { 1222 setScreenMagnifierCheckboxState_: function(checked) {
1228 // TODO(zork): Update UI 1223 // TODO(zork): Update UI
1229 }, 1224 },
1230 1225
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 BrowserOptions.getLoggedInUsername = function() { 1395 BrowserOptions.getLoggedInUsername = function() {
1401 return BrowserOptions.getInstance().username_; 1396 return BrowserOptions.getInstance().username_;
1402 }; 1397 };
1403 } 1398 }
1404 1399
1405 // Export 1400 // Export
1406 return { 1401 return {
1407 BrowserOptions: BrowserOptions 1402 BrowserOptions: BrowserOptions
1408 }; 1403 };
1409 }); 1404 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/browser_options.html ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698