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

Unified Diff: ash/common/wm/immersive_context_ash.cc

Issue 2368343002: Revert auto-hide-invisible mode for ARC++ (Closed)
Patch Set: Revert "Use MD-ash's auto hide behavior for arc++ windows." Created 4 years, 3 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 | « ash/common/shelf/shelf_layout_manager.cc ('k') | ash/common/wm/window_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/immersive_context_ash.cc
diff --git a/ash/common/wm/immersive_context_ash.cc b/ash/common/wm/immersive_context_ash.cc
index ed9244f5635f02d6176d180323be513b3f2a38fd..8b8f9a09aa7076d19ef280b1fcd0382c9ba04d65 100644
--- a/ash/common/wm/immersive_context_ash.cc
+++ b/ash/common/wm/immersive_context_ash.cc
@@ -32,10 +32,7 @@ void ImmersiveContextAsh::OnEnteringOrExitingImmersive(
WmWindow* window = WmLookup::Get()->GetWindowForWidget(controller->widget());
wm::WindowState* window_state = window->GetWindowState();
// Auto hide the shelf in immersive fullscreen instead of hiding it.
- window_state->set_shelf_mode_in_fullscreen(
- entering ? ash::wm::WindowState::SHELF_AUTO_HIDE_VISIBLE
- : ash::wm::WindowState::SHELF_HIDDEN);
-
+ window_state->set_hide_shelf_when_fullscreen(!entering);
// Update the window's immersive mode state for the window manager.
window_state->set_in_immersive_fullscreen(entering);
« no previous file with comments | « ash/common/shelf/shelf_layout_manager.cc ('k') | ash/common/wm/window_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698