diff options
author | dtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 20:37:10 +0000 |
---|---|---|
committer | dtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 20:37:10 +0000 |
commit | 091160623dcb93beea9d6159fef03d90f808ebd8 (patch) | |
tree | c21d87967a5370b8de3fdd75db0beea71abea8ac /chrome/browser/views/infobars | |
parent | 5f21cceea4596a9cbd73d4c1b225fff77595276d (diff) | |
download | chromium_src-091160623dcb93beea9d6159fef03d90f808ebd8.zip chromium_src-091160623dcb93beea9d6159fef03d90f808ebd8.tar.gz chromium_src-091160623dcb93beea9d6159fef03d90f808ebd8.tar.bz2 |
Set focus to a ConfirmInfoBar. This serves to alerts screen reader users that the confirmation has appeared and alleviates the need to hunt for these controls.
BUG=37360
TEST=Confirm that focus lands correctly on the "save" button when logging into a site and offer to save passwords is enabled.
Review URL: http://codereview.chromium.org/3405026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60342 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/infobars')
-rw-r--r-- | chrome/browser/views/infobars/infobars.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/infobars/infobars.cc b/chrome/browser/views/infobars/infobars.cc index 58a4db6..1fe3921 100644 --- a/chrome/browser/views/infobars/infobars.cc +++ b/chrome/browser/views/infobars/infobars.cc @@ -127,7 +127,7 @@ InfoBar::~InfoBar() { bool InfoBar::GetAccessibleRole(AccessibilityTypes::Role* role) { DCHECK(role); - *role = AccessibilityTypes::ROLE_PANE; + *role = AccessibilityTypes::ROLE_ALERT; return true; } @@ -253,6 +253,8 @@ void InfoBar::InfoBarAdded() { GetFocusManager())); } #endif + + NotifyAccessibilityEvent(AccessibilityTypes::EVENT_ALERT); } void InfoBar::InfoBarRemoved() { |