| Index: ash/common/frame/header_view.cc
|
| diff --git a/ash/common/frame/header_view.cc b/ash/common/frame/header_view.cc
|
| index d868bcf1ac20c6e77f366ffcb5c9fbcc095dc281..df4c386256da203eeccbbd2bf09b8e0a7f6f396d 100644
|
| --- a/ash/common/frame/header_view.cc
|
| +++ b/ash/common/frame/header_view.cc
|
| @@ -9,6 +9,7 @@
|
| #include "ash/common/session/session_state_delegate.h"
|
| #include "ash/common/wm_lookup.h"
|
| #include "ash/common/wm_shell.h"
|
| +#include "ui/compositor/layer_type.h"
|
| #include "ui/gfx/canvas.h"
|
| #include "ui/views/controls/image_view.h"
|
| #include "ui/views/widget/widget.h"
|
| @@ -164,20 +165,20 @@ views::View* HeaderView::avatar_icon() const {
|
|
|
| void HeaderView::OnImmersiveRevealStarted() {
|
| fullscreen_visible_fraction_ = 0;
|
| - SetPaintToLayer(true);
|
| + SetPaintToLayer(ui::LAYER_TEXTURED);
|
| layer()->SetFillsBoundsOpaquely(false);
|
| parent()->Layout();
|
| }
|
|
|
| void HeaderView::OnImmersiveRevealEnded() {
|
| fullscreen_visible_fraction_ = 0;
|
| - SetPaintToLayer(false);
|
| + SetPaintToLayer(ui::LAYER_NOT_DRAWN);
|
| parent()->Layout();
|
| }
|
|
|
| void HeaderView::OnImmersiveFullscreenExited() {
|
| fullscreen_visible_fraction_ = 0;
|
| - SetPaintToLayer(false);
|
| + SetPaintToLayer(ui::LAYER_NOT_DRAWN);
|
| parent()->Layout();
|
| }
|
|
|
|
|