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

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

Issue 9703078: ash: Highlight the items in the uber-tray popup when hovering. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 | « ash/system/tray/system_tray.cc ('k') | ash/system/user/tray_user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_empty.cc
diff --git a/ash/system/tray/tray_empty.cc b/ash/system/tray/tray_empty.cc
index d10c5953397c0d721479473ea49c76c9b006c73a..81fab79caeedd58fa71776894b9756ac0c5034d9 100644
--- a/ash/system/tray/tray_empty.cc
+++ b/ash/system/tray/tray_empty.cc
@@ -19,14 +19,15 @@ views::View* TrayEmpty::CreateTrayView(user::LoginStatus status) {
}
views::View* TrayEmpty::CreateDefaultView(user::LoginStatus status) {
- views::View* view = new views::View;
+ if (status == user::LOGGED_IN_NONE)
+ return NULL;
+ views::View* view = new views::View;
view->set_background(views::Background::CreateSolidBackground(
SkColorSetARGB(0, 0, 0, 0)));
view->set_border(views::Border::CreateEmptyBorder(10, 0, 0, 0));
view->SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical,
0, 0, 0));
-
return view;
}
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/user/tray_user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698