diff options
author | yoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-07 12:52:03 +0000 |
---|---|---|
committer | yoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-07 12:52:03 +0000 |
commit | 5799902999726a0f7676f48616fef874cc32375c (patch) | |
tree | 5bd8b12cd3ca3a6ff780fbe22cbba6cfa8ab21c5 /ash/shell | |
parent | ff51404a38c4ff7e9ff98135facfd2701e3e9f09 (diff) | |
download | chromium_src-5799902999726a0f7676f48616fef874cc32375c.zip chromium_src-5799902999726a0f7676f48616fef874cc32375c.tar.gz chromium_src-5799902999726a0f7676f48616fef874cc32375c.tar.bz2 |
Large Cursor: Add the toggle menuitem to a11y menu in uber tray.
This patch adds the menuitem to toggle Large cursor feature. It is available only on Login Screen.
BUG=247255
TEST=manual and browser_test passes.
Review URL: https://chromiumcodereview.appspot.com/16175004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell')
-rw-r--r-- | ash/shell/shell_delegate_impl.cc | 11 | ||||
-rw-r--r-- | ash/shell/shell_delegate_impl.h | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc index cd9e542..1fc782c 100644 --- a/ash/shell/shell_delegate_impl.cc +++ b/ash/shell/shell_delegate_impl.cc @@ -59,7 +59,8 @@ ShellDelegateImpl::ShellDelegateImpl() spoken_feedback_enabled_(false), high_contrast_enabled_(false), screen_magnifier_enabled_(false), - screen_magnifier_type_(kDefaultMagnifierType) { + screen_magnifier_type_(kDefaultMagnifierType), + large_cursor_enabled_(false) { } ShellDelegateImpl::~ShellDelegateImpl() { @@ -170,6 +171,14 @@ MagnifierType ShellDelegateImpl::GetMagnifierType() const { return screen_magnifier_type_; } +void ShellDelegateImpl::SetLargeCursorEnabled(bool enabled) { + large_cursor_enabled_ = enabled; +} + +bool ShellDelegateImpl::IsLargeCursorEnabled() const { + return large_cursor_enabled_; +} + bool ShellDelegateImpl::ShouldAlwaysShowAccessibilityMenu() const { return false; } diff --git a/ash/shell/shell_delegate_impl.h b/ash/shell/shell_delegate_impl.h index 014e48c..c01b201 100644 --- a/ash/shell/shell_delegate_impl.h +++ b/ash/shell/shell_delegate_impl.h @@ -54,6 +54,8 @@ class ShellDelegateImpl : public ash::ShellDelegate { virtual void SetMagnifierType(MagnifierType type) OVERRIDE; virtual bool IsMagnifierEnabled() const OVERRIDE; virtual MagnifierType GetMagnifierType() const OVERRIDE; + virtual void SetLargeCursorEnabled(bool enabled) OVERRIDE; + virtual bool IsLargeCursorEnabled() const OVERRIDE; virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE; virtual void SilenceSpokenFeedback() const OVERRIDE; virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; @@ -89,6 +91,7 @@ class ShellDelegateImpl : public ash::ShellDelegate { bool high_contrast_enabled_; bool screen_magnifier_enabled_; MagnifierType screen_magnifier_type_; + bool large_cursor_enabled_; DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl); }; |