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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index 6e2975a960b60f997c167e1b00d59c8b5acaec23..11a0527efd52612871428b4a5d757931fd2c6e9a 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -326,6 +326,44 @@ bool ChromeShellDelegate::IsSpokenFeedbackEnabled() const {
#endif
}
+bool ChromeShellDelegate::IsHighContrastEnabled() const {
+#if defined(OS_CHROMEOS)
+ return chromeos::accessibility::IsHighContrastEnabled();
+#else
+ return false;
+#endif
+}
+
+void ChromeShellDelegate::ToggleHighContrast() {
+#if defined(OS_CHROMEOS)
+ bool enabled = chromeos::accessibility::IsHighContrastEnabled();
+ chromeos::accessibility::EnableHighContrast(!enabled);
+#endif
+}
+
+ash::ScreenMagnifierType ChromeShellDelegate::GetScreenMagnifierType() const {
+#if defined(OS_CHROMEOS)
+ return chromeos::accessibility::GetScreenMagnifierType();
+#else
+ return false;
Zachary Kuznia 2012/11/21 08:07:12 return ash::MAGNIFIER_NONE
yoshiki 2012/11/21 14:48:04 Done.
+#endif
+}
+
+void ChromeShellDelegate::SetScreenMagnifier(ash::ScreenMagnifierType type) {
+#if defined(OS_CHROMEOS)
+ chromeos::accessibility::SetScreenMagnifier(type);
+#endif
+}
+
+bool ChromeShellDelegate::AlwaysShowAccessibilityMenu() const {
+#if defined(OS_CHROMEOS)
+ // TODO(yoshiki): Add the checkbox on chrome://settings. crbug.com/158287
+ return false;
+#else
+ return false;
+#endif
+}
+
app_list::AppListViewDelegate*
ChromeShellDelegate::CreateAppListViewDelegate() {
DCHECK(ash::Shell::HasInstance());

Powered by Google App Engine
This is Rietveld 408576698