Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5144)

Unified Diff: chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc

Issue 79273002: Fixed accessibility issues in bookmark bubble dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/bookmarks_strings.grdp ('k') | chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc
diff --git a/chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc b/chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc
index 25b0feff746b5acf26b8c30aa039d72fa4cf8b99..db7e93c1a0a0d117c30279047516b6b53cd7896e 100644
--- a/chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc
+++ b/chrome/browser/ui/views/accessibility/accessibility_event_router_views.cc
@@ -174,6 +174,7 @@ void AccessibilityEventRouterViews::DispatchAccessibilityEvent(
switch (state.role) {
case ui::AccessibilityTypes::ROLE_ALERT:
+ case ui::AccessibilityTypes::ROLE_DIALOG:
case ui::AccessibilityTypes::ROLE_WINDOW:
SendWindowNotification(view, type, profile);
break;
@@ -207,6 +208,9 @@ void AccessibilityEventRouterViews::DispatchAccessibilityEvent(
case ui::AccessibilityTypes::ROLE_SLIDER:
SendSliderNotification(view, type, profile);
break;
+ case ui::AccessibilityTypes::ROLE_OUTLINE:
+ // Not used anymore?
+ break;
default:
// If this is encountered, please file a bug with the role that wasn't
// caught so we can add accessibility extension API support.
@@ -395,9 +399,11 @@ std::string AccessibilityEventRouterViews::GetViewContext(views::View* view) {
// Two cases are handled right now. More could be added in the future
// depending on how the UI evolves.
- // A control in a toolbar should use the toolbar's accessible name
+ // A control in alert, toolbar or dialog should use the its accessible name
// as the context.
- if (state.role == ui::AccessibilityTypes::ROLE_TOOLBAR &&
+ if ((state.role == ui::AccessibilityTypes::ROLE_ALERT ||
+ state.role == ui::AccessibilityTypes::ROLE_DIALOG ||
+ state.role == ui::AccessibilityTypes::ROLE_TOOLBAR) &&
David Tseng 2013/11/20 22:13:27 Did you test this with infobars? It looks like the
zel 2013/11/21 00:19:23 Well, this statement ensures that if a parent of s
!state.name.empty()) {
return UTF16ToUTF8(state.name);
}
« no previous file with comments | « chrome/app/bookmarks_strings.grdp ('k') | chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698