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

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

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: fix comments 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_host_view.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..b1c5a6862da605c32cdb9b19cdd52344dd1db9c9 100644
--- a/ash/common/frame/header_view.cc
+++ b/ash/common/frame/header_view.cc
@@ -164,20 +164,20 @@ views::View* HeaderView::avatar_icon() const {
void HeaderView::OnImmersiveRevealStarted() {
fullscreen_visible_fraction_ = 0;
- SetPaintToLayer(true);
+ SetPaintToLayer();
layer()->SetFillsBoundsOpaquely(false);
parent()->Layout();
}
void HeaderView::OnImmersiveRevealEnded() {
fullscreen_visible_fraction_ = 0;
- SetPaintToLayer(false);
+ DestroyLayer();
parent()->Layout();
}
void HeaderView::OnImmersiveFullscreenExited() {
fullscreen_visible_fraction_ = 0;
- SetPaintToLayer(false);
+ DestroyLayer();
parent()->Layout();
}
« no previous file with comments | « no previous file | ash/common/shelf/overflow_bubble_view.cc » ('j') | ui/views/animation/ink_drop_host_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698