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

Unified Diff: ash/common/frame/header_view.cc

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: Refactor Created 3 years, 11 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 | « no previous file | ash/common/shelf/overflow_bubble_view.cc » ('j') | ui/views/animation/ink_drop.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | ash/common/shelf/overflow_bubble_view.cc » ('j') | ui/views/animation/ink_drop.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698