Commit 02e9b8fe authored by Takumi Fujimoto's avatar Takumi Fujimoto Committed by Commit Bot

[Harmony Cast Dialog] Give the "no devices found" info button a label

Give the info button a label read by screen readers when it is in focus:
"No Cast destinations found. Need help?"

Bug: 869600
Change-Id: I90af935d528f7aa128469b98ecb691f6d13228a0
Reviewed-on: https://chromium-review.googlesource.com/1214044Reviewed-by: default avatarDerek Cheng <imcheng@chromium.org>
Commit-Queue: Takumi Fujimoto <takumif@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590017}
parent ae3ab57c
......@@ -87,6 +87,8 @@ views::View* CastDialogNoSinksView::CreateHelpIconView() {
help_icon->SetFocusForPlatform();
help_icon->SetBorder(
views::CreateEmptyBorder(gfx::Insets(kPrimaryIconBorderWidth)));
help_icon->SetAccessibleName(
l10n_util::GetStringUTF16(IDS_MEDIA_ROUTER_DESTINATION_MISSING));
HoverButton* view =
new HoverButton(/* button_listener */ nullptr, std::move(help_icon),
title, base::string16());
......
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