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

Unified Diff: ash/system/tray/tray_views.cc

Issue 10694139: ash: Do not focus the buttons in the uber-tray on click. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_views.cc
diff --git a/ash/system/tray/tray_views.cc b/ash/system/tray/tray_views.cc
index a0edbe2e62d82de77165c7582c67a252b1561416..7756960e6c9e5ae51885be47afbc6a32d6a2e6dc 100644
--- a/ash/system/tray/tray_views.cc
+++ b/ash/system/tray/tray_views.cc
@@ -314,6 +314,7 @@ TrayPopupTextButton::TrayPopupTextButton(views::ButtonListener* listener,
set_alignment(ALIGN_CENTER);
set_border(NULL);
set_focusable(true);
+ set_request_focus_on_press(false);
}
TrayPopupTextButton::~TrayPopupTextButton() {}
@@ -400,6 +401,7 @@ TrayPopupHeaderButton::TrayPopupHeaderButton(views::ButtonListener* listener,
SetImageAlignment(views::ImageButton::ALIGN_CENTER,
views::ImageButton::ALIGN_MIDDLE);
set_focusable(true);
+ set_request_focus_on_press(false);
}
TrayPopupHeaderButton::~TrayPopupHeaderButton() {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698