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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 11415025: A11y: Introduce High Contrast Mode and Screen Magnifier to ubar tray. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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 #include "chrome/browser/ui/webui/options/browser_options_handler.h" 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 args->GetBoolean(0, &enabled); 1261 args->GetBoolean(0, &enabled);
1262 1262
1263 chromeos::accessibility::EnableHighContrast(enabled); 1263 chromeos::accessibility::EnableHighContrast(enabled);
1264 } 1264 }
1265 1265
1266 void BrowserOptionsHandler::ScreenMagnifierChangeCallback( 1266 void BrowserOptionsHandler::ScreenMagnifierChangeCallback(
1267 const ListValue* args) { 1267 const ListValue* args) {
1268 std::string type_name; 1268 std::string type_name;
1269 args->GetString(0, &type_name); 1269 args->GetString(0, &type_name);
1270 1270
1271 chromeos::accessibility::ScreenMagnifierType type = 1271 ash::ScreenMagnifierType type =
1272 chromeos::accessibility::ScreenMagnifierTypeFromName(type_name.c_str()); 1272 chromeos::accessibility::ScreenMagnifierTypeFromName(type_name.c_str());
1273 1273
1274 chromeos::accessibility::SetScreenMagnifier(type); 1274 chromeos::accessibility::SetScreenMagnifier(type);
1275 } 1275 }
1276 1276
1277 void BrowserOptionsHandler::VirtualKeyboardChangeCallback( 1277 void BrowserOptionsHandler::VirtualKeyboardChangeCallback(
1278 const ListValue* args) { 1278 const ListValue* args) {
1279 bool enabled = false; 1279 bool enabled = false;
1280 args->GetBoolean(0, &enabled); 1280 args->GetBoolean(0, &enabled);
1281 1281
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); 1420 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
1421 } 1421 }
1422 StringValue label(label_str); 1422 StringValue label(label_str);
1423 1423
1424 web_ui()->CallJavascriptFunction( 1424 web_ui()->CallJavascriptFunction(
1425 "BrowserOptions.setupProxySettingsSection", disabled, label); 1425 "BrowserOptions.setupProxySettingsSection", disabled, label);
1426 #endif // !defined(OS_CHROMEOS) 1426 #endif // !defined(OS_CHROMEOS)
1427 } 1427 }
1428 1428
1429 } // namespace options 1429 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698