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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 14200048: Introduce AcccessibilityManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 92811762a75ecf8a18ffe50f9ceecc235ab44157..322ec96fd4842337ea9a2392c933a39c108a2072 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -596,14 +596,6 @@ void BrowserOptionsHandler::RegisterMessages() {
base::Bind(&BrowserOptionsHandler::HandleOpenWallpaperManager,
base::Unretained(this)));
web_ui()->RegisterMessageCallback(
- "spokenFeedbackChange",
- base::Bind(&BrowserOptionsHandler::SpokenFeedbackChangeCallback,
- base::Unretained(this)));
- web_ui()->RegisterMessageCallback(
- "highContrastChange",
- base::Bind(&BrowserOptionsHandler::HighContrastChangeCallback,
- base::Unretained(this)));
- web_ui()->RegisterMessageCallback(
"virtualKeyboardChange",
base::Bind(&BrowserOptionsHandler::VirtualKeyboardChangeCallback,
base::Unretained(this)));
@@ -1442,22 +1434,6 @@ void BrowserOptionsHandler::HandleOpenWallpaperManager(
wallpaper_manager_util::OpenWallpaperManager();
}
-void BrowserOptionsHandler::SpokenFeedbackChangeCallback(
- const ListValue* args) {
- bool enabled = false;
- args->GetBoolean(0, &enabled);
-
- chromeos::accessibility::EnableSpokenFeedback(
- enabled, NULL, ash::A11Y_NOTIFICATION_NONE);
-}
-
-void BrowserOptionsHandler::HighContrastChangeCallback(const ListValue* args) {
- bool enabled = false;
- args->GetBoolean(0, &enabled);
-
- chromeos::accessibility::EnableHighContrast(enabled);
-}
-
void BrowserOptionsHandler::VirtualKeyboardChangeCallback(
const ListValue* args) {
bool enabled = false;
@@ -1485,16 +1461,6 @@ void BrowserOptionsHandler::PerformFactoryResetRestart(const ListValue* args) {
void BrowserOptionsHandler::SetupAccessibilityFeatures() {
PrefService* pref_service = g_browser_process->local_state();
- base::FundamentalValue spoken_feedback_enabled(
- pref_service->GetBoolean(prefs::kSpokenFeedbackEnabled));
- web_ui()->CallJavascriptFunction(
- "BrowserOptions.setSpokenFeedbackCheckboxState",
- spoken_feedback_enabled);
- base::FundamentalValue high_contrast_enabled(
- pref_service->GetBoolean(prefs::kHighContrastEnabled));
- web_ui()->CallJavascriptFunction(
- "BrowserOptions.setHighContrastCheckboxState",
- high_contrast_enabled);
base::FundamentalValue virtual_keyboard_enabled(
pref_service->GetBoolean(prefs::kVirtualKeyboardEnabled));
web_ui()->CallJavascriptFunction(
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698