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

Unified Diff: ui/views/controls/menu/menu_controller.cc

Issue 1982073002: Fix accessibility of buttons inside Chrome menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « chrome/browser/ui/views/toolbar/app_menu.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_controller.cc
diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc
index 6290ab9e3edf2e8dddf0fb195635f3887ad7b42c..144f9086c6fbe25ccb186faa77b81e38f7568059 100644
--- a/ui/views/controls/menu/menu_controller.cc
+++ b/ui/views/controls/menu/menu_controller.cc
@@ -2668,15 +2668,19 @@ void MenuController::SetInitialHotTrackedView(
void MenuController::SetHotTrackedButton(CustomButton* hot_button) {
if (hot_button == hot_button_) {
// Hot-tracked state may change outside of the MenuController. Correct it.
- if (hot_button && !hot_button->IsHotTracked())
+ if (hot_button && !hot_button->IsHotTracked()) {
hot_button->SetHotTracked(true);
+ hot_button->NotifyAccessibilityEvent(ui::AX_EVENT_SELECTION, true);
+ }
return;
}
if (hot_button_)
hot_button_->SetHotTracked(false);
hot_button_ = hot_button;
- if (hot_button)
+ if (hot_button) {
hot_button->SetHotTracked(true);
+ hot_button->NotifyAccessibilityEvent(ui::AX_EVENT_SELECTION, true);
+ }
}
} // namespace views
« no previous file with comments | « chrome/browser/ui/views/toolbar/app_menu.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698