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

Unified Diff: Source/core/accessibility/AXObject.cpp

Issue 629003003: Adding roles in Blink side to expose menuitemcheckbox & menuitemradio role with correct IA2 role. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
Index: Source/core/accessibility/AXObject.cpp
diff --git a/Source/core/accessibility/AXObject.cpp b/Source/core/accessibility/AXObject.cpp
index 1b68e94a7fbcf98e1e814eefba9b4962f64e4a8b..c296ddfbda8c8dcc53211a281e49abb716bcb372 100644
--- a/Source/core/accessibility/AXObject.cpp
+++ b/Source/core/accessibility/AXObject.cpp
@@ -91,8 +91,8 @@ static ARIARoleMap* createARIARoleMap()
{ "menu", MenuRole },
{ "menubar", MenuBarRole },
{ "menuitem", MenuItemRole },
- { "menuitemcheckbox", MenuItemRole },
- { "menuitemradio", MenuItemRole },
+ { "menuitemcheckbox", MenuItemCheckBoxRole },
+ { "menuitemradio", MenuItemRadioRole },
{ "note", NoteRole },
{ "navigation", NavigationRole },
{ "none", NoneRole },
@@ -202,6 +202,8 @@ bool AXObject::isMenuRelated() const
case MenuBarRole:
case MenuButtonRole:
case MenuItemRole:
+ case MenuItemCheckBoxRole:
+ case MenuItemRadioRole:
return true;
default:
return false;

Powered by Google App Engine
This is Rietveld 408576698