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

Unified Diff: ui/message_center/views/message_center_button_bar.cc

Issue 1690543004: MacViews: Implement Full Keyboard Access. (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: ui/message_center/views/message_center_button_bar.cc
diff --git a/ui/message_center/views/message_center_button_bar.cc b/ui/message_center/views/message_center_button_bar.cc
index fbd5859d9baf20395f55f38df8a3b350a5d4fea4..9c1774173ef7db5e73f9e4f66e3221e76f0acefe 100644
--- a/ui/message_center/views/message_center_button_bar.cc
+++ b/ui/message_center/views/message_center_button_bar.cc
@@ -76,7 +76,7 @@ NotificationCenterButton::NotificationCenterButton(
if (text_id)
SetTooltipText(resource_bundle.GetLocalizedString(text_id));
- SetFocusable(true);
+ views::Button::ConfigureDefaultFocus(this);
set_request_focus_on_press(false);
SetFocusPainter(views::Painter::CreateSolidFocusPainter(
@@ -119,7 +119,7 @@ MessageCenterButtonBar::MessageCenterButtonBar(
title_arrow_->set_size(gfx::Size(kButtonSize, kButtonSize));
// Keyboardists can use the gear button to switch modes.
- title_arrow_->SetFocusable(false);
+ title_arrow_->SetFocusBehavior(views::View::FocusBehavior::NEVER);
AddChildView(title_arrow_);
notification_label_ = new views::Label(title);

Powered by Google App Engine
This is Rietveld 408576698