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

Unified Diff: ash/test/test_shell_delegate.cc

Issue 11642014: Re-introduce the partial magnifier (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the build failure on win_aura Created 7 years, 11 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 | « 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 f782c868e784258fb62012070f11628a32f1c497..c2fdc603ad88b397240951a6c28c510f30204a2c 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -24,7 +24,8 @@ TestShellDelegate::TestShellDelegate()
session_started_(true),
spoken_feedback_enabled_(false),
high_contrast_enabled_(false),
- screen_magnifier_type_(MAGNIFIER_OFF),
+ screen_magnifier_enabled_(false),
+ screen_magnifier_type_(kDefaultMagnifierType),
user_logged_in_(true),
can_lock_screen_(true),
num_exit_requests_(0) {
@@ -124,10 +125,18 @@ bool TestShellDelegate::IsHighContrastEnabled() const {
return high_contrast_enabled_;
}
-void TestShellDelegate::SetMagnifier(const MagnifierType type) {
+void TestShellDelegate::SetMagnifierEnabled(bool enabled) {
+ screen_magnifier_enabled_ = enabled;
+}
+
+void TestShellDelegate::SetMagnifierType(MagnifierType type) {
screen_magnifier_type_ = type;
}
+bool TestShellDelegate::IsMagnifierEnabled() const {
+ return screen_magnifier_enabled_;
+}
+
MagnifierType TestShellDelegate::GetMagnifierType() const {
return screen_magnifier_type_;
}
« 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