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

Unified Diff: ash/shelf/shelf_layout_manager_unittest.cc

Issue 2248913005: Revert of Use MD-ash's auto hide behavior for arc++ windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shelf/shelf_layout_manager.cc ('k') | ash/system/web_notification/web_notification_tray_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_layout_manager_unittest.cc
diff --git a/ash/shelf/shelf_layout_manager_unittest.cc b/ash/shelf/shelf_layout_manager_unittest.cc
index 61823bff62c33f6f1c8e70d434e4e0eccd9f4451..13d445f0da448cd2aa6348a303fc60d93cf6e6a8 100644
--- a/ash/shelf/shelf_layout_manager_unittest.cc
+++ b/ash/shelf/shelf_layout_manager_unittest.cc
@@ -524,8 +524,7 @@
// Put |widget| into fullscreen. Set the shelf to be auto hidden when |widget|
// is fullscreen. (eg browser immersive fullscreen).
widget->SetFullscreen(true);
- wm::GetWindowState(window)->set_shelf_mode_in_fullscreen(
- ash::wm::WindowState::SHELF_AUTO_HIDE_VISIBLE);
+ wm::GetWindowState(window)->set_hide_shelf_when_fullscreen(false);
layout_manager->UpdateVisibilityState();
gfx::Rect bounds_fullscreen = window->bounds();
@@ -563,39 +562,9 @@
GetShelfWidget()->GetWindowBoundsInScreen().ToString());
EXPECT_EQ(bounds_fullscreen.ToString(), window->bounds().ToString());
- // Set the shelf to be auto hide and invisible when |widget| is fullscreen.
- // (used in arc immersive fullscreen)
- wm::GetWindowState(window)->set_shelf_mode_in_fullscreen(
- ash::wm::WindowState::SHELF_AUTO_HIDE_INVISIBLE);
- layout_manager->UpdateVisibilityState();
- EXPECT_EQ(SHELF_AUTO_HIDE, shelf->GetVisibilityState());
- EXPECT_TRUE(widget->IsFullscreen());
- EXPECT_EQ(display::Screen::GetScreen()->GetPrimaryDisplay().bounds(),
- display::Screen::GetScreen()->GetPrimaryDisplay().work_area());
-
- // Switch from invisible to visible autodhide.
- wm::GetWindowState(window)->set_shelf_mode_in_fullscreen(
- ash::wm::WindowState::SHELF_AUTO_HIDE_VISIBLE);
- layout_manager->UpdateVisibilityState();
- EXPECT_EQ(SHELF_AUTO_HIDE, shelf->GetVisibilityState());
- EXPECT_TRUE(widget->IsFullscreen());
- EXPECT_NE(display::Screen::GetScreen()->GetPrimaryDisplay().bounds(),
- display::Screen::GetScreen()->GetPrimaryDisplay().work_area());
-
- // Switch from invisible to visible autodhide.
- wm::GetWindowState(window)->set_shelf_mode_in_fullscreen(
- ash::wm::WindowState::SHELF_AUTO_HIDE_INVISIBLE);
- layout_manager->UpdateVisibilityState();
- EXPECT_EQ(SHELF_AUTO_HIDE, shelf->GetVisibilityState());
- EXPECT_TRUE(widget->IsFullscreen());
- EXPECT_EQ(display::Screen::GetScreen()->GetPrimaryDisplay().bounds(),
- display::Screen::GetScreen()->GetPrimaryDisplay().work_area());
-
// Set the shelf to be hidden when |widget| is fullscreen. (eg tab fullscreen
// with or without immersive browser fullscreen).
- wm::GetWindowState(window)->set_shelf_mode_in_fullscreen(
- ash::wm::WindowState::SHELF_HIDDEN);
-
+ wm::GetWindowState(window)->set_hide_shelf_when_fullscreen(true);
layout_manager->UpdateVisibilityState();
EXPECT_EQ(SHELF_HIDDEN, shelf->GetVisibilityState());
EXPECT_EQ(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS, shelf->auto_hide_behavior());
@@ -2084,4 +2053,4 @@
display::Screen::GetScreen()->GetPrimaryDisplay().work_area());
}
-} // namespace ash
+} // namespace ash
« no previous file with comments | « ash/shelf/shelf_layout_manager.cc ('k') | ash/system/web_notification/web_notification_tray_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698