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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc

Issue 14200048: Introduce AcccessibilityManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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/ash/ash_init.cc ('k') | chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc b/chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc
index 199f8d81b9fbed4b658c302724ee4eef63445194..753cb86989e3d7101fa1d269a32b519493eb9884 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc
@@ -8,7 +8,7 @@
#include "ash/wm/window_util.h"
#include "base/command_line.h"
#include "base/prefs/pref_service.h"
-#include "chrome/browser/chromeos/accessibility/accessibility_util.h"
+#include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
#include "chrome/browser/chromeos/accessibility/magnification_manager.h"
#include "chrome/browser/chromeos/background/ash_user_wallpaper_delegate.h"
#include "chrome/browser/chromeos/display/display_preferences.h"
@@ -112,16 +112,19 @@ void ChromeShellDelegate::OpenCrosh() {
}
void ChromeShellDelegate::ToggleHighContrast() {
- bool enabled = chromeos::accessibility::IsHighContrastEnabled();
- chromeos::accessibility::EnableHighContrast(!enabled);
+ DCHECK(chromeos::AccessibilityManager::Get());
+ bool enabled = chromeos::AccessibilityManager::Get()->IsHighContrastEnabled();
+ chromeos::AccessibilityManager::Get()->EnableHighContrast(!enabled);
}
bool ChromeShellDelegate::IsSpokenFeedbackEnabled() const {
- return chromeos::accessibility::IsSpokenFeedbackEnabled();
+ DCHECK(chromeos::AccessibilityManager::Get());
+ return chromeos::AccessibilityManager::Get()->IsSpokenFeedbackEnabled();
}
void ChromeShellDelegate::ToggleSpokenFeedback(
ash::AccessibilityNotificationVisibility notify) {
+ DCHECK(chromeos::AccessibilityManager::Get());
content::WebUI* web_ui = NULL;
chromeos::LoginDisplayHostImpl* host =
@@ -136,11 +139,12 @@ void ChromeShellDelegate::ToggleSpokenFeedback(
web_ui = chromeos::ScreenLocker::default_screen_locker()->
GetAssociatedWebUI();
}
- chromeos::accessibility::ToggleSpokenFeedback(web_ui, notify);
+ chromeos::AccessibilityManager::Get()->ToggleSpokenFeedback(web_ui, notify);
}
bool ChromeShellDelegate::IsHighContrastEnabled() const {
- return chromeos::accessibility::IsHighContrastEnabled();
+ DCHECK(chromeos::AccessibilityManager::Get());
+ return chromeos::AccessibilityManager::Get()->IsHighContrastEnabled();
}
bool ChromeShellDelegate::IsMagnifierEnabled() const {
« no previous file with comments | « chrome/browser/ui/ash/ash_init.cc ('k') | chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698