summaryrefslogtreecommitdiffstats
path: root/ui/aura_shell/launcher
diff options
context:
space:
mode:
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-23 20:53:14 +0000
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-23 20:53:14 +0000
commitb4bb9ca0f57a0375e80cd662f0233298ed987a72 (patch)
tree179c4eec26b5ba6a160865eea51f1155d9572116 /ui/aura_shell/launcher
parent0531171e5800f313832a5200266a115bbc5041ff (diff)
downloadchromium_src-b4bb9ca0f57a0375e80cd662f0233298ed987a72.zip
chromium_src-b4bb9ca0f57a0375e80cd662f0233298ed987a72.tar.gz
chromium_src-b4bb9ca0f57a0375e80cd662f0233298ed987a72.tar.bz2
Allow animating alpha
BUG=None TEST=None Review URL: http://codereview.chromium.org/7979020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102571 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura_shell/launcher')
-rw-r--r--ui/aura_shell/launcher/launcher_view.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/aura_shell/launcher/launcher_view.cc b/ui/aura_shell/launcher/launcher_view.cc
index e647875..219a6d1 100644
--- a/ui/aura_shell/launcher/launcher_view.cc
+++ b/ui/aura_shell/launcher/launcher_view.cc
@@ -9,6 +9,7 @@
#include "ui/aura_shell/aura_shell_export.h"
#include "ui/aura_shell/launcher/launcher_button.h"
#include "ui/gfx/canvas.h"
+#include "ui/gfx/compositor/layer.h"
#include "views/widget/widget.h"
namespace aura_shell {
@@ -43,6 +44,7 @@ AURA_SHELL_EXPORT views::Widget* CreateLauncher() {
LauncherView* launcher_view = new LauncherView;
params2.delegate = launcher_view;
launcher_widget->Init(params2);
+ launcher_widget->GetNativeWindow()->layer()->SetOpacity(0.2f);
launcher_widget->SetContentsView(launcher_view);
launcher_widget->Show();
launcher_widget->GetNativeView()->set_name(ASCIIToUTF16("LauncherView"));