summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/infobars
diff options
context:
space:
mode:
authordtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 20:37:10 +0000
committerdtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 20:37:10 +0000
commit091160623dcb93beea9d6159fef03d90f808ebd8 (patch)
treec21d87967a5370b8de3fdd75db0beea71abea8ac /chrome/browser/views/infobars
parent5f21cceea4596a9cbd73d4c1b225fff77595276d (diff)
downloadchromium_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.cc4
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() {