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

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

Issue 1898633004: Views: Add new SetFocusBehavior method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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
« no previous file with comments | « ui/app_list/views/start_page_view.cc ('k') | ui/message_center/views/message_center_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..dd441afad6f45d2a1042c581dd29369a6ef5c3ac 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);
+ SetFocusBehavior(FocusBehavior::ALWAYS);
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(FocusBehavior::NEVER);
AddChildView(title_arrow_);
notification_label_ = new views::Label(title);
« no previous file with comments | « ui/app_list/views/start_page_view.cc ('k') | ui/message_center/views/message_center_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698