diff options
author | yoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-13 04:52:36 +0000 |
---|---|---|
committer | yoshiki@chromium.org <yoshiki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-13 04:52:36 +0000 |
commit | 467585bea136159cef8e6a5daa07410903e48f6f (patch) | |
tree | 96f104655e417920b36584254991a5251ef08df6 /ash/shell_delegate.h | |
parent | d0b03ce9d146df58a308818805f2f2d51837d52b (diff) | |
download | chromium_src-467585bea136159cef8e6a5daa07410903e48f6f.zip chromium_src-467585bea136159cef8e6a5daa07410903e48f6f.tar.gz chromium_src-467585bea136159cef8e6a5daa07410903e48f6f.tar.bz2 |
Show an a11y notification only if the feature was enabled by its shortcut key
Currently, only spoken feedback has a shortcut key, so this CL supports only it.
Major Changes:
- Add a |notify| argument to ToggleSpokenFeedback() methods to pass the flag whether the tray should show a notification or not.
- (in ash_system_tray_delegate.cc) Use chrome notifications instead of watching pref change to observe the accessibility feature status change.
BUG=158288
TEST=manual
R=zork@chromium.org,derat@chromium.org
TBR=darin@chromium.org,dbeam@chromium.org
#TBRing for small changes in chrome/browser/automation and chrome/browser/ui/webui/options
Review URL: https://codereview.chromium.org/11510005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172821 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell_delegate.h')
-rw-r--r-- | ash/shell_delegate.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h index 26b54a1..96064e5 100644 --- a/ash/shell_delegate.h +++ b/ash/shell_delegate.h @@ -60,6 +60,11 @@ enum UserMetricsAction { UMA_TOUCHSCREEN_TAP_DOWN, }; +enum AccessibilityNotificationVisibility { + A11Y_NOTIFICATION_NONE, + A11Y_NOTIFICATION_SHOW, +}; + // Delegate of the Shell. class ASH_EXPORT ShellDelegate { public: @@ -131,7 +136,8 @@ class ASH_EXPORT ShellDelegate { virtual content::BrowserContext* GetCurrentBrowserContext() = 0; // Invoked to toggle spoken feedback for accessibility - virtual void ToggleSpokenFeedback() = 0; + virtual void ToggleSpokenFeedback( + AccessibilityNotificationVisibility notify) = 0; // Returns true if spoken feedback is enabled. virtual bool IsSpokenFeedbackEnabled() const = 0; |