From 091160623dcb93beea9d6159fef03d90f808ebd8 Mon Sep 17 00:00:00 2001 From: "dtseng@chromium.org" Date: Thu, 23 Sep 2010 20:37:10 +0000 Subject: 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 --- chrome/browser/views/infobars/infobars.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'chrome/browser') 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() { -- cgit v1.1