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

Unified Diff: ui/message_center/views/notification_button.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: ui/message_center/views/notification_button.cc
diff --git a/ui/message_center/views/notification_button.cc b/ui/message_center/views/notification_button.cc
index 6eaca0a1b5d2b7b5e42e8d6f77fac1b04b89039d..26a35bfdc0662abaa20234904e6e7ab62ce6f43d 100644
--- a/ui/message_center/views/notification_button.cc
+++ b/ui/message_center/views/notification_button.cc
@@ -23,7 +23,7 @@ NotificationButton::NotificationButton(views::ButtonListener* listener)
focus_painter_(views::Painter::CreateSolidFocusPainter(
message_center::kFocusBorderColor,
gfx::Insets(1, 2, 2, 2))) {
- SetFocusBehavior(FocusBehavior::ALWAYS);
+ Button::ConfigureDefaultFocus(this);
// Create a background so that it does not change when the MessageView
// background changes to show touch feedback
set_background(views::Background::CreateSolidBackground(

Powered by Google App Engine
This is Rietveld 408576698