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

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: rebase @170134 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
« no previous file with comments | « ash/test/test_shell_delegate.h ('k') | chrome/browser/chromeos/accessibility/accessibility_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_shell_delegate.cc
diff --git a/ash/test/test_shell_delegate.cc b/ash/test/test_shell_delegate.cc
index 5047bfb703aa706ba2f49eb6f2833347c91de497..e3aac464b1ddcbcb2fed66c17444e06a69e38955 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),
can_lock_screen_(true),
is_search_key_acting_as_function_key_(false),
@@ -113,6 +115,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::SetMagnifier(const MagnifierType type) {
+ screen_magnifier_type_ = type;
+}
+
+MagnifierType TestShellDelegate::GetMagnifierType() const {
+ return screen_magnifier_type_;
+}
+
+bool TestShellDelegate::ShouldAlwaysShowAccessibilityMenu() const {
+ return false;
+}
+
app_list::AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() {
return NULL;
}
« no previous file with comments | « ash/test/test_shell_delegate.h ('k') | chrome/browser/chromeos/accessibility/accessibility_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698