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

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

Issue 14225010: Sets request_focus_on_press to false for message_center_buttons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/notification_view.cc
diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc
index 597ac9633726d8beaac5507967d909417a6ee518..a14cefddbc631c5bf607d4d9ad68c50704fa0c17 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -269,6 +269,7 @@ NotificationButton::NotificationButton(views::ButtonListener* listener)
icon_(NULL),
title_(NULL) {
set_focusable(true);
+ set_request_focus_on_press(false);
SetLayoutManager(new views::BoxLayout(views::BoxLayout::kHorizontal,
kButtonHorizontalPadding,
kButtonVecticalPadding,
« ui/message_center/views/message_center_view.cc ('K') | « ui/message_center/views/message_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698