Commit 2d02db12 authored by Aaron Leventhal's avatar Aaron Leventhal Committed by Commit Bot

Accessible name close button

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: Ie5e8a17f1656ce1c7545dadacee163499563da70
Reviewed-on: https://chromium-review.googlesource.com/952330Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542253}
parent 419dc977
......@@ -8,10 +8,12 @@
#include "chrome/grit/browser_resources.h"
#include "content/public/browser/web_contents.h"
#include "ui/base/hit_test.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/font_list.h"
#include "ui/gfx/path.h"
#include "ui/strings/grit/ui_strings.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
......@@ -57,6 +59,8 @@ void ImeWindowFrameView::Init() {
rb.GetImageSkiaNamed(IDR_IME_WINDOW_CLOSE_C));
close_button_->SetImageAlignment(views::ImageButton::ALIGN_CENTER,
views::ImageButton::ALIGN_MIDDLE);
close_button_->SetAccessibleName(
l10n_util::GetStringUTF16(IDS_APP_ACCNAME_CLOSE));
AddChildView(close_button_);
title_icon_ = new views::ImageView();
......
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