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

Unified Diff: ui/message_center/views/notification_view.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/notification_view.cc
diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc
index a5c902a7f0a6ccd449080ec6d9cceb76a0acc884..75fc439be0f912d7270ebbc6fd7adaa61eb9f71b 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -344,7 +344,7 @@ NotificationButton::NotificationButton(views::ButtonListener* listener)
focus_painter_(views::Painter::CreateSolidFocusPainter(
message_center::kFocusBorderColor,
gfx::Insets(1, 2, 2, 2))) {
- set_focusable(true);
+ SetFocusable(true);
set_request_focus_on_press(false);
set_notify_enter_exit_on_child(true);
SetLayoutManager(

Powered by Google App Engine
This is Rietveld 408576698