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

Unified Diff: ash/test/test_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: ash/test/test_shell_delegate.cc
diff --git a/ash/test/test_shell_delegate.cc b/ash/test/test_shell_delegate.cc
index e406d765b23289ce7f773599653c411a95849824..ac3da8d2f93f7f06d41a53587675d0a901c33fdf 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -22,6 +22,8 @@ TestShellDelegate::TestShellDelegate()
: locked_(false),
session_started_(true),
spoken_feedback_enabled_(false),
+ high_contrast_enabled_(false),
+ screen_magnifier_type_(MAGNIFIER_OFF),
user_logged_in_(true),
num_exit_requests_(0) {
}
@@ -107,6 +109,26 @@ bool TestShellDelegate::IsSpokenFeedbackEnabled() const {
return spoken_feedback_enabled_;
}
+void TestShellDelegate::ToggleHighContrast() {
+ high_contrast_enabled_ = !high_contrast_enabled_;
+}
+
+bool TestShellDelegate::IsHighContrastEnabled() const {
+ return high_contrast_enabled_;
+}
+
+void TestShellDelegate::SetScreenMagnifier(const ScreenMagnifierType type) {
+ screen_magnifier_type_ = type;
+}
+
+ScreenMagnifierType TestShellDelegate::GetScreenMagnifierType() const {
+ return screen_magnifier_type_;
+}
+
+bool TestShellDelegate::AlwaysShowAccessibilityMenu() const {
+ return false;
+}
+
app_list::AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() {
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698