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

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

Issue 1870573003: Full Keyboard Access: Second Approach (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 ae8637ffdbf6cc418150aea38205187c39a987ba..3a862a0f82e563245ec5775c8c481677272efc19 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -40,6 +40,7 @@
#include "ui/views/controls/link.h"
#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/layout/layout_constants.h"
+#include "ui/views/style/platform_style.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/non_client_view.h"
@@ -160,7 +161,8 @@ 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->SetFocusable(true);
+ views::PlatformStyle::ConfigureFocus(views::PlatformStyle::CONTROL::BUTTON,
+ button);
button->SetTextColor(views::Button::STATE_NORMAL, GetInfobarTextColor());
button->SetTextColor(views::Button::STATE_HOVERED, GetInfobarTextColor());
return button;
@@ -289,7 +291,8 @@ void InfoBarView::ViewHierarchyChanged(
}
close_button_->SetAccessibleName(
l10n_util::GetStringUTF16(IDS_ACCNAME_CLOSE));
- close_button_->SetFocusable(true);
+ views::PlatformStyle::ConfigureFocus(views::PlatformStyle::CONTROL::BUTTON,
+ close_button_);
// Subclasses should already be done adding child views by this point (see
// related DCHECK in Layout()).
child_container_->AddChildView(close_button_);
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/location_bar/location_icon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698