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

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

Issue 2581703003: Defer focus handling to the content if it claims to have focus. (Closed)
Patch Set: address the comment Created 3 years, 11 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/message_center/views/custom_notification_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_center_view.cc
diff --git a/ui/message_center/views/message_center_view.cc b/ui/message_center/views/message_center_view.cc
index 90d9768e231a7e8cf4fdd5c3901ddbc53605cc19..a16898da43f1dc6817a89d8bbdfed964e2eecdb8 100644
--- a/ui/message_center/views/message_center_view.cc
+++ b/ui/message_center/views/message_center_view.cc
@@ -343,8 +343,7 @@ void MessageCenterView::OnNotificationRemoved(const std::string& id,
// Moves the keyboard focus to the next notification if the removed
// notification is focused so that the user can dismiss notifications
// without re-focusing by tab key.
- if (view->IsCloseButtonFocused() ||
- view == GetFocusManager()->GetFocusedView()) {
+ if (view->IsCloseButtonFocused() || view->HasFocus()) {
views::View* next_focused_view = NULL;
if (message_list_view_->child_count() > index + 1)
next_focused_view = message_list_view_->child_at(index + 1);
« no previous file with comments | « ui/message_center/views/custom_notification_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698