Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7102)

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.cc

Issue 1817253003: [MD] Use same focus ring on BarControlButton as MdTextButton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update docs Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/infobars/infobar_view.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc
index b0012dc05b02af4bc2c6072ce4d2f8a461c50246..d7f97bb9c3790c614b53bfd907bbad7e61ae53ca 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -234,6 +234,7 @@ void InfoBarView::Layout() {
}
int content_minimum_width = ContentMinimumWidth();
+ close_button_->SizeToPreferredSize();
close_button_->SetPosition(gfx::Point(
std::max(
start_x + content_minimum_width +
@@ -275,7 +276,6 @@ void InfoBarView::ViewHierarchyChanged(
close_button_->SetImage(views::CustomButton::STATE_PRESSED,
rb.GetImageNamed(IDR_CLOSE_1_P).ToImageSkia());
}
- close_button_->SizeToPreferredSize();
close_button_->SetAccessibleName(
l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE));
close_button_->SetFocusable(true);
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698