Commit ce99c246 authored by Aaron Leventhal's avatar Aaron Leventhal Committed by Commit Bot

URL bar needs accessible name to pass future accessibility checks

Accessibility checks require all views, even in content shell, to have a name.

Bug: None
Change-Id: I6a4d4c7ff826cbd48fc0b91f7173dd2e93862412
Reviewed-on: https://chromium-review.googlesource.com/919305Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#536939}
parent 19114cb8
...@@ -175,6 +175,7 @@ class ShellWindowDelegateView : public views::WidgetDelegateView, ...@@ -175,6 +175,7 @@ class ShellWindowDelegateView : public views::WidgetDelegateView,
toolbar_column_set->AddPaddingColumn(0, 2); toolbar_column_set->AddPaddingColumn(0, 2);
// URL entry // URL entry
url_entry_ = new views::Textfield(); url_entry_ = new views::Textfield();
url_entry_->SetAccessibleName(base::ASCIIToUTF16("Enter URL"));
url_entry_->set_controller(this); url_entry_->set_controller(this);
url_entry_->SetTextInputType(ui::TextInputType::TEXT_INPUT_TYPE_URL); url_entry_->SetTextInputType(ui::TextInputType::TEXT_INPUT_TYPE_URL);
toolbar_column_set->AddColumn(views::GridLayout::FILL, toolbar_column_set->AddColumn(views::GridLayout::FILL,
......
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