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

Side by Side Diff: ash/common/frame/header_view.cc

Issue 2265563002: Shuffles around immersive related classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@immersive_pure_virtual
Patch Set: move comment Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/frame/header_view.h" 5 #include "ash/common/frame/header_view.h"
6 6
7 #include "ash/common/frame/caption_buttons/frame_caption_button_container_view.h " 7 #include "ash/common/frame/caption_buttons/frame_caption_button_container_view.h "
8 #include "ash/common/frame/default_header_painter.h" 8 #include "ash/common/frame/default_header_painter.h"
9 #include "ash/common/material_design/material_design_controller.h" 9 #include "ash/common/material_design/material_design_controller.h"
10 #include "ash/common/session/session_state_delegate.h" 10 #include "ash/common/session/session_state_delegate.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 caption_button_container_->UpdateSizeButtonVisibility(); 144 caption_button_container_->UpdateSizeButtonVisibility();
145 parent()->Layout(); 145 parent()->Layout();
146 } 146 }
147 147
148 views::View* HeaderView::avatar_icon() const { 148 views::View* HeaderView::avatar_icon() const {
149 return avatar_icon_; 149 return avatar_icon_;
150 } 150 }
151 151
152 /////////////////////////////////////////////////////////////////////////////// 152 ///////////////////////////////////////////////////////////////////////////////
153 // HeaderView, 153 // HeaderView,
154 // WmImmersiveFullscreenControllerDelegate overrides: 154 // ImmersiveFullscreenControllerDelegate overrides:
155 155
156 void HeaderView::OnImmersiveRevealStarted() { 156 void HeaderView::OnImmersiveRevealStarted() {
157 fullscreen_visible_fraction_ = 0; 157 fullscreen_visible_fraction_ = 0;
158 SetPaintToLayer(true); 158 SetPaintToLayer(true);
159 layer()->SetFillsBoundsOpaquely(false); 159 layer()->SetFillsBoundsOpaquely(false);
160 parent()->Layout(); 160 parent()->Layout();
161 } 161 }
162 162
163 void HeaderView::OnImmersiveRevealEnded() { 163 void HeaderView::OnImmersiveRevealEnded() {
164 fullscreen_visible_fraction_ = 0; 164 fullscreen_visible_fraction_ = 0;
(...skipping 19 matching lines...) Expand all
184 gfx::Rect visible_bounds(GetVisibleBounds()); 184 gfx::Rect visible_bounds(GetVisibleBounds());
185 gfx::Point visible_origin_in_screen(visible_bounds.origin()); 185 gfx::Point visible_origin_in_screen(visible_bounds.origin());
186 views::View::ConvertPointToScreen(this, &visible_origin_in_screen); 186 views::View::ConvertPointToScreen(this, &visible_origin_in_screen);
187 std::vector<gfx::Rect> bounds_in_screen; 187 std::vector<gfx::Rect> bounds_in_screen;
188 bounds_in_screen.push_back( 188 bounds_in_screen.push_back(
189 gfx::Rect(visible_origin_in_screen, visible_bounds.size())); 189 gfx::Rect(visible_origin_in_screen, visible_bounds.size()));
190 return bounds_in_screen; 190 return bounds_in_screen;
191 } 191 }
192 192
193 } // namespace ash 193 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/frame/header_view.h ('k') | ash/common/wm/immersive/wm_immersive_fullscreen_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698