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

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

Issue 1894383002: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SetFocusBehavior
Patch Set: Rebased Created 4 years, 7 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
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 567700777bcb40eae7b19ccf2b46c02cc19bbc0d..a804f4b5404e629b25ff184b071240cd228e1cca 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -160,7 +160,7 @@ views::LabelButton* InfoBarView::CreateTextButton(
button->set_animate_on_state_change(false);
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
button->SetFontList(rb.GetFontList(ui::ResourceBundle::MediumFont));
- button->SetFocusBehavior(FocusBehavior::ALWAYS);
+ views::Button::ConfigureDefaultFocus(button);
button->SetTextColor(views::Button::STATE_NORMAL, GetInfobarTextColor());
button->SetTextColor(views::Button::STATE_HOVERED, GetInfobarTextColor());
return button;
@@ -289,7 +289,7 @@ void InfoBarView::ViewHierarchyChanged(
}
close_button_->SetAccessibleName(
l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE));
- close_button_->SetFocusBehavior(FocusBehavior::ALWAYS);
+ views::Button::ConfigureDefaultFocus(close_button_);
// Subclasses should already be done adding child views by this point (see
// related DCHECK in Layout()).
child_container_->AddChildView(close_button_);

Powered by Google App Engine
This is Rietveld 408576698