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

Unified Diff: views/controls/menu/menu_scroll_view_container.cc

Issue 3015055: Enable better NVDA support for custom menus.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 months 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 | « views/controls/menu/menu_scroll_view_container.h ('k') | views/controls/menu/submenu_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_scroll_view_container.cc
===================================================================
--- views/controls/menu/menu_scroll_view_container.cc (revision 54772)
+++ views/controls/menu/menu_scroll_view_container.cc (working copy)
@@ -274,4 +274,13 @@
return true;
}
+bool MenuScrollViewContainer::GetAccessibleState(
+ AccessibilityTypes::State* state) {
+ DCHECK(state);
+ // Some AT (like NVDA) will not process focus events on menu item children
+ // unless a parent claims to be focused.
+ *state = AccessibilityTypes::STATE_FOCUSED;
+ return true;
+}
+
} // namespace views
« no previous file with comments | « views/controls/menu/menu_scroll_view_container.h ('k') | views/controls/menu/submenu_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698