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

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

Issue 108063004: Give up focus if the focused view becomes unfocusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extracted to common code into FocusManager class Created 7 years 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 9eb7246ae7d7f98ee0b670ff218afcc2908e5085..0816ffa29b192d93e61c543b6ad6eaf026949a11 100644
--- a/ui/message_center/views/message_center_button_bar.cc
+++ b/ui/message_center/views/message_center_button_bar.cc
@@ -74,7 +74,7 @@ NotificationCenterButton::NotificationCenterButton(
if (text_id)
SetTooltipText(resource_bundle.GetLocalizedString(text_id));
- set_focusable(true);
+ SetFocusable(true);
set_request_focus_on_press(false);
SetFocusPainter(views::Painter::CreateSolidFocusPainter(
@@ -114,7 +114,7 @@ MessageCenterButtonBar::MessageCenterButtonBar(
title_arrow_->set_size(gfx::Size(kChevronWidth, kButtonSize));
// Keyboardists can use the gear button to switch modes.
- title_arrow_->set_focusable(false);
+ title_arrow_->SetFocusable(false);
AddChildView(title_arrow_);
gfx::Font notification_label_font =

Powered by Google App Engine
This is Rietveld 408576698