Commit 39b6068c authored by Aaron Leventhal's avatar Aaron Leventhal Committed by Commit Bot

Similar role and name in login_shelf_view and shelf_view

This is split out from the CL to test all widgets and views for nameless
focusable objects. See crrev.com/c/951933.

Bug: 819350
Change-Id: Iecef5783a292363f8f994cdce5f5f24f92d48025
Reviewed-on: https://chromium-review.googlesource.com/961281Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542905}
parent 01b0ec51
......@@ -209,6 +209,8 @@ void LoginShelfView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
int next_id =
views::AXAuraObjCache::GetInstance()->GetID(shelf->GetStatusAreaWidget());
node_data->AddIntAttribute(ax::mojom::IntAttribute::kNextFocusId, next_id);
node_data->role = ax::mojom::Role::kToolbar;
node_data->SetName(l10n_util::GetStringUTF8(IDS_ASH_SHELF_ACCESSIBLE_NAME));
}
void LoginShelfView::ButtonPressed(views::Button* sender,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment