| Index: ui/views/controls/menu/submenu_view.cc
|
| diff --git a/ui/views/controls/menu/submenu_view.cc b/ui/views/controls/menu/submenu_view.cc
|
| index a04d83292a64b7fabb80a78afd85b9c39f84f7ca..b09eadd165ffa565afc27361fe59f26a98791c5d 100644
|
| --- a/ui/views/controls/menu/submenu_view.cc
|
| +++ b/ui/views/controls/menu/submenu_view.cc
|
| @@ -182,10 +182,13 @@ gfx::Size SubmenuView::GetPreferredSize() const {
|
| }
|
|
|
| void SubmenuView::GetAccessibleState(ui::AXViewState* state) {
|
| - // Inherit most of the state from the parent menu item, except the role.
|
| + // Inherit most of the state from the parent menu item, except the role and
|
| + // the orientation.
|
| if (GetMenuItem())
|
| GetMenuItem()->GetAccessibleState(state);
|
| state->role = ui::AX_ROLE_MENU_LIST_POPUP;
|
| + // Menus in Chrome are always traversed in a vertical direction.
|
| + state->AddStateFlag(ui::AX_STATE_VERTICAL);
|
| }
|
|
|
| void SubmenuView::PaintChildren(const ui::PaintContext& context) {
|
|
|