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

Unified Diff: ash/system/power/tray_power.cc

Issue 10086005: ash: Show better focus rects for the tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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: ash/system/power/tray_power.cc
diff --git a/ash/system/power/tray_power.cc b/ash/system/power/tray_power.cc
index c15789044a8c7c3a27b792582071df6caa3ed0af..18c3364e4ac77b3fa5631f3ad7f9a01e4bca7a4f 100644
--- a/ash/system/power/tray_power.cc
+++ b/ash/system/power/tray_power.cc
@@ -195,10 +195,14 @@ views::View* TrayPower::CreateDefaultView(user::LoginStatus status) {
container->set_background(views::Background::CreateSolidBackground(
kHeaderBackgroundColor));
HoverHighlightView* view = new HoverHighlightView(NULL);
- view->SetLayoutManager(new views::BoxLayout(views::BoxLayout::kHorizontal,
- kTrayPopupPaddingHorizontal, kPaddingVertical, 0));
+ view->SetLayoutManager(new views::FillLayout);
view->AddChildView(date_.get());
+ date_->set_border(views::Border::CreateEmptyBorder(kPaddingVertical,
+ kTrayPopupPaddingHorizontal,
+ kPaddingVertical,
+ kTrayPopupPaddingHorizontal));
container->AddChildView(view);
+ view->set_focusable(false);
if (status != user::LOGGED_IN_NONE && status != user::LOGGED_IN_LOCKED) {
date_->SetActionable(true);

Powered by Google App Engine
This is Rietveld 408576698