diff options
author | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-05 03:13:09 +0000 |
---|---|---|
committer | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-05 03:13:09 +0000 |
commit | 487ba146b8f27e123863ac28070ec675690772c6 (patch) | |
tree | 5ed0a423ec0acc1c8f89fd08530e105d328bbedf /chrome/browser/resources/options | |
parent | 5647895bce1ebfe89fa0367078cf0b09cedb25c2 (diff) | |
download | chromium_src-487ba146b8f27e123863ac28070ec675690772c6.zip chromium_src-487ba146b8f27e123863ac28070ec675690772c6.tar.gz chromium_src-487ba146b8f27e123863ac28070ec675690772c6.tar.bz2 |
Add stubs to options menu for additional accessibility features
R=dmazzoni@chromium.org
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/8932002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116447 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/options')
-rw-r--r-- | chrome/browser/resources/options/chromeos/system_options.html | 28 | ||||
-rw-r--r-- | chrome/browser/resources/options/chromeos/system_options.js | 47 |
2 files changed, 66 insertions, 9 deletions
diff --git a/chrome/browser/resources/options/chromeos/system_options.html b/chrome/browser/resources/options/chromeos/system_options.html index 97baec7..5769aa5 100644 --- a/chrome/browser/resources/options/chromeos/system_options.html +++ b/chrome/browser/resources/options/chromeos/system_options.html @@ -107,8 +107,32 @@ <div class="option-name"> <div class="checkbox"> <label> - <input id="accesibility-check" type="checkbox"> - <span i18n-content="accessibility"></span> + <input id="accessibility-spoken-feedback-check" type="checkbox"> + <span i18n-content="accessibilitySpokenFeedback"></span> + </label> + </div> + </div> + <div class="option-name"> + <div class="checkbox"> + <label> + <input id="accessibility-high-contrast-check" type="checkbox"> + <span i18n-content="accessibilityHighContrast"></span> + </label> + </div> + </div> + <div class="option-name"> + <div class="checkbox"> + <label> + <input id="accessibility-screen-magnifier-check" type="checkbox"> + <span i18n-content="accessibilityScreenMagnifier"></span> + </label> + </div> + </div> + <div class="option-name"> + <div class="checkbox"> + <label> + <input id="accessibility-virtual-keyboard-check" type="checkbox"> + <span i18n-content="accessibilityVirtualKeyboard"></span> </label> </div> </div> diff --git a/chrome/browser/resources/options/chromeos/system_options.js b/chrome/browser/resources/options/chromeos/system_options.js index ae26b9c..a0940f8 100644 --- a/chrome/browser/resources/options/chromeos/system_options.js +++ b/chrome/browser/resources/options/chromeos/system_options.js @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -68,9 +68,21 @@ cr.define('options', function() { $('modifier-keys-button').onclick = function(event) { OptionsPage.navigateToPage('languageCustomizeModifierKeysOverlay'); }; - $('accesibility-check').onchange = function(event) { - chrome.send('accessibilityChange', - [String($('accesibility-check').checked)]); + $('accessibility-spoken-feedback-check').onchange = function(event) { + chrome.send('spokenFeedbackChange', + [$('accessibility-spoken-feedback-check').checked]); + }; + $('accessibility-high-contrast-check').onchange = function(event) { + chrome.send('highContrastChange', + [$('accessibility-high-contrast-check').checked]); + }; + $('accessibility-screen-magnifier-check').onchange = function(event) { + chrome.send('screenMagnifierChange', + [$('accessibility-screen-magnifier-check').checked]); + }; + $('accessibility-virtual-keyboard-check').onchange = function(event) { + chrome.send('virtualKeyboardChange', + [$('accessibility-virtual-keyboard-check').checked]); }; initializeBrightnessButton_('brightness-decrease-button', 'decreaseScreenBrightness'); @@ -111,10 +123,31 @@ cr.define('options', function() { // /** - * Set the initial state of the accessibility checkbox. + * Set the initial state of the spoken feedback checkbox. + */ + SystemOptions.setSpokenFeedbackCheckboxState = function(checked) { + $('accessibility-spoken-feedback-check').checked = checked; + }; + + /** + * Set the initial state of the high contrast checkbox. + */ + SystemOptions.setHighContrastCheckboxState = function(checked) { + $('accessibility-high-contrast-check').checked = checked; + }; + + /** + * Set the initial state of the screen magnifier checkbox. + */ + SystemOptions.setScreenMagnifierCheckboxState = function(checked) { + $('accessibility-screen-magnifier-check').checked = checked; + }; + + /** + * Set the initial state of the virtual keyboard checkbox. */ - SystemOptions.SetAccessibilityCheckboxState = function(checked) { - $('accesibility-check').checked = checked; + SystemOptions.setVirtualKeyboardCheckboxState = function(checked) { + $('accessibility-virtual-keyboard-check').checked = checked; }; /** |