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

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

Issue 10171021: ash: Add a shadow for the uber-tray popups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adjustment 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
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | no next file » | 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 5613481dbc77bbb37799034ff478c059c945dcd0..670618d42fe67d56b985ab03726acd48b2e10715 100644
--- a/ash/system/tray/tray_empty.cc
+++ b/ash/system/tray/tray_empty.cc
@@ -5,8 +5,25 @@
#include "ash/system/tray/tray_empty.h"
#include "ui/views/layout/box_layout.h"
+#include "ui/views/background.h"
#include "ui/views/view.h"
+namespace {
+
+class EmptyBackground : public views::Background {
+ public:
+ EmptyBackground() {}
+ virtual ~EmptyBackground() {}
+
+ private:
+ virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE {
+ }
+
+ DISALLOW_COPY_AND_ASSIGN(EmptyBackground);
+};
+
+}
+
namespace ash {
namespace internal {
@@ -23,11 +40,12 @@ views::View* TrayEmpty::CreateDefaultView(user::LoginStatus status) {
return NULL;
views::View* view = new views::View;
- view->set_background(views::Background::CreateSolidBackground(
- SkColorSetARGB(0, 0, 0, 0)));
+ view->set_background(new EmptyBackground());
view->set_border(views::Border::CreateEmptyBorder(10, 0, 0, 0));
view->SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical,
0, 0, 0));
+ view->SetPaintToLayer(true);
+ view->SetFillsBoundsOpaquely(false);
return view;
}
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698