diff options
author | gavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 14:47:48 +0000 |
---|---|---|
committer | gavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-17 14:47:48 +0000 |
commit | f2192efaf719d6e54459fde8ef38093e08e194e0 (patch) | |
tree | 26b06fa106a8ab701dcda5e4c00f959d9d82a700 /ash/wm | |
parent | b0b94f5c503e44cc2190a9c7c4d20425f77e6a42 (diff) | |
download | chromium_src-f2192efaf719d6e54459fde8ef38093e08e194e0.zip chromium_src-f2192efaf719d6e54459fde8ef38093e08e194e0.tar.gz chromium_src-f2192efaf719d6e54459fde8ef38093e08e194e0.tar.bz2 |
Revert 194578 "Add ash SessionStateDelegate"
> Add ash SessionStateDelegate
>
> This CL refactors the ShellDelegate by adding a SessionStateDelegate to
> which methods dealing with the session state can be moved. This cleans up
> the huge ShellDelegate interface and paves the way for further Chrome OS
> multiprofile work which will need to add several new methods related to
> the session state.
>
> This CL is only the first step. Several other methods should also move to
> SessionStateDelegate but I do not want to overburden a single CL.
>
> BUG=None
> TEST=Manual and browser/unit tests
>
> TBR=sky (for c/b/idle_chromeos.cc and c/chrome_browser_ui.gypi)
>
> Review URL: https://codereview.chromium.org/14295008
TBR=bartfab@google.com
Review URL: https://codereview.chromium.org/14200034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194589 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm')
-rw-r--r-- | ash/wm/event_client_impl.cc | 4 | ||||
-rw-r--r-- | ash/wm/gestures/shelf_gesture_handler.cc | 6 | ||||
-rw-r--r-- | ash/wm/power_button_controller.cc | 23 | ||||
-rw-r--r-- | ash/wm/power_button_controller_unittest.cc | 19 | ||||
-rw-r--r-- | ash/wm/session_state_controller_impl2_unittest.cc | 11 | ||||
-rw-r--r-- | ash/wm/stacking_controller.cc | 7 | ||||
-rw-r--r-- | ash/wm/system_modal_container_layout_manager.cc | 9 | ||||
-rw-r--r-- | ash/wm/system_modal_container_layout_manager_unittest.cc | 8 | ||||
-rw-r--r-- | ash/wm/window_cycle_controller.cc | 5 | ||||
-rw-r--r-- | ash/wm/window_cycle_controller_unittest.cc | 5 | ||||
-rw-r--r-- | ash/wm/workspace/workspace_cycler.cc | 3 | ||||
-rw-r--r-- | ash/wm/workspace/workspace_layout_manager.cc | 3 |
12 files changed, 41 insertions, 62 deletions
diff --git a/ash/wm/event_client_impl.cc b/ash/wm/event_client_impl.cc index ab62f68..241f514 100644 --- a/ash/wm/event_client_impl.cc +++ b/ash/wm/event_client_impl.cc @@ -4,7 +4,6 @@ #include "ash/wm/event_client_impl.h" -#include "ash/session_state_delegate.h" #include "ash/shell.h" #include "ash/shell_window_ids.h" #include "ui/aura/window.h" @@ -22,8 +21,7 @@ bool EventClientImpl::CanProcessEventsWithinSubtree( const aura::Window* window) const { const aura::RootWindow* root_window = window ? window->GetRootWindow() : NULL; - if (Shell::GetInstance()->session_state_delegate()->IsScreenLocked() && - root_window) { + if (Shell::GetInstance()->IsScreenLocked() && root_window) { const aura::Window* lock_screen_containers = Shell::GetContainer( root_window, kShellWindowId_LockScreenContainersContainer); diff --git a/ash/wm/gestures/shelf_gesture_handler.cc b/ash/wm/gestures/shelf_gesture_handler.cc index 2fa7905..a4e8737 100644 --- a/ash/wm/gestures/shelf_gesture_handler.cc +++ b/ash/wm/gestures/shelf_gesture_handler.cc @@ -5,11 +5,11 @@ #include "ash/wm/gestures/shelf_gesture_handler.h" #include "ash/root_window_controller.h" -#include "ash/session_state_delegate.h" #include "ash/shelf/shelf_layout_manager.h" #include "ash/shelf/shelf_types.h" #include "ash/shelf/shelf_widget.h" #include "ash/shell.h" +#include "ash/shell_delegate.h" #include "ash/system/status_area_widget.h" #include "ash/wm/gestures/tray_gesture_handler.h" #include "ash/wm/window_util.h" @@ -31,8 +31,8 @@ ShelfGestureHandler::~ShelfGestureHandler() { bool ShelfGestureHandler::ProcessGestureEvent(const ui::GestureEvent& event) { Shell* shell = Shell::GetInstance(); - if (!shell->session_state_delegate()->HasActiveUser() || - shell->session_state_delegate()->IsScreenLocked()) { + if (!shell->delegate()->IsUserLoggedIn() || + shell->delegate()->IsScreenLocked()) { // The gestures are disabled in the lock/login screen. return false; } diff --git a/ash/wm/power_button_controller.cc b/ash/wm/power_button_controller.cc index 6850608..9359b8a 100644 --- a/ash/wm/power_button_controller.cc +++ b/ash/wm/power_button_controller.cc @@ -5,8 +5,8 @@ #include "ash/wm/power_button_controller.h" #include "ash/ash_switches.h" -#include "ash/session_state_delegate.h" #include "ash/shell.h" +#include "ash/shell_delegate.h" #include "ash/shell_window_ids.h" #include "ash/wm/session_state_animator.h" #include "ash/wm/session_state_controller.h" @@ -45,15 +45,13 @@ void PowerButtonController::OnPowerButtonEvent( if (screen_is_off_) return; - const SessionStateDelegate* session_state_delegate = - Shell::GetInstance()->session_state_delegate(); + Shell* shell = Shell::GetInstance(); if (has_legacy_power_button_) { // If power button releases won't get reported correctly because we're not // running on official hardware, just lock the screen or shut down // immediately. if (down) { - if (session_state_delegate->CanLockScreen() && - !session_state_delegate->IsScreenLocked() && + if (shell->CanLockScreen() && !shell->IsScreenLocked() && !controller_->LockRequested()) { controller_->StartLockAnimationAndLockImmediately(); } else { @@ -66,12 +64,10 @@ void PowerButtonController::OnPowerButtonEvent( if (controller_->LockRequested()) return; - if (session_state_delegate->CanLockScreen() && - !session_state_delegate->IsScreenLocked()) { + if (shell->CanLockScreen() && !shell->IsScreenLocked()) controller_->StartLockAnimation(true); - } else { + else controller_->StartShutdownAnimation(); - } } else { // Button is up. if (controller_->CanCancelLockAnimation()) controller_->CancelLockAnimation(); @@ -85,12 +81,9 @@ void PowerButtonController::OnLockButtonEvent( bool down, const base::TimeTicks& timestamp) { lock_button_down_ = down; - const SessionStateDelegate* session_state_delegate = - Shell::GetInstance()->session_state_delegate(); - if (!session_state_delegate->CanLockScreen() || - session_state_delegate->IsScreenLocked() || - controller_->LockRequested() || - controller_->ShutdownRequested()) { + Shell* shell = Shell::GetInstance(); + if (!shell->CanLockScreen() || shell->IsScreenLocked() || + controller_->LockRequested() || controller_->ShutdownRequested()) { return; } diff --git a/ash/wm/power_button_controller_unittest.cc b/ash/wm/power_button_controller_unittest.cc index 7dbdf73..a989644 100644 --- a/ash/wm/power_button_controller_unittest.cc +++ b/ash/wm/power_button_controller_unittest.cc @@ -8,7 +8,6 @@ #include "ash/wm/session_state_controller_impl.h" #include "ash/ash_switches.h" -#include "ash/session_state_delegate.h" #include "ash/shell.h" #include "ash/test/ash_test_base.h" #include "ash/test/test_shell_delegate.h" @@ -78,7 +77,6 @@ class PowerButtonControllerTest : public AshTestBase { animator_.get())); shell_delegate_ = reinterpret_cast<TestShellDelegate*>( ash::Shell::GetInstance()->delegate()); - state_delegate_ = Shell::GetInstance()->session_state_delegate(); } protected: @@ -97,7 +95,6 @@ class PowerButtonControllerTest : public AshTestBase { SessionStateControllerImpl* state_controller_; // not owned TestPowerButtonControllerDelegate* delegate_; // not owned TestShellDelegate* shell_delegate_; // not owned - SessionStateDelegate* state_delegate_; // not owned scoped_ptr<SessionStateControllerImpl::TestApi> test_api_; scoped_ptr<internal::SessionStateAnimator::TestApi> animator_api_; @@ -142,7 +139,7 @@ TEST_F(PowerButtonControllerTest, LegacyLockAndShutDown) { // Notify that the lock window is visible. We should make it fade in. state_controller_->OnLockStateChanged(true); - state_delegate_->LockScreen(); + shell_delegate_->LockScreen(); EXPECT_TRUE( animator_api_->ContainersAreAnimated( internal::SessionStateAnimator::kAllLockScreenContainersMask, @@ -308,7 +305,7 @@ TEST_F(PowerButtonControllerTest, LockAndUnlock) { // Notify that the lock window is visible. We should make it fade in. state_controller_->OnLockStateChanged(true); - state_delegate_->LockScreen(); + shell_delegate_->LockScreen(); EXPECT_TRUE( animator_api_->ContainersAreAnimated( internal::SessionStateAnimator::kAllLockScreenContainersMask, @@ -323,7 +320,7 @@ TEST_F(PowerButtonControllerTest, LockAndUnlock) { // Notify that the screen has been unlocked. We should show the // non-screen-locker windows. state_controller_->OnLockStateChanged(false); - state_delegate_->UnlockScreen(); + shell_delegate_->UnlockScreen(); EXPECT_TRUE( animator_api_->ContainersAreAnimated( internal::SessionStateAnimator::DESKTOP_BACKGROUND | @@ -344,7 +341,7 @@ TEST_F(PowerButtonControllerTest, LockToShutdown) { test_api_->trigger_lock_timeout(); state_controller_->OnStartingLock(); state_controller_->OnLockStateChanged(true); - state_delegate_->LockScreen(); + shell_delegate_->LockScreen(); // When the lock-to-shutdown timeout fires, we should start the shutdown // timer. @@ -382,7 +379,7 @@ TEST_F(PowerButtonControllerTest, CancelLockToShutdown) { // Power button is released while system attempts to lock. controller_->OnPowerButtonEvent(false, base::TimeTicks::Now()); state_controller_->OnLockStateChanged(true); - state_delegate_->LockScreen(); + shell_delegate_->LockScreen(); EXPECT_FALSE(state_controller_->ShutdownRequested()); EXPECT_FALSE(test_api_->lock_to_shutdown_timer_is_running()); @@ -482,7 +479,7 @@ TEST_F(PowerButtonControllerTest, LockButtonBasic) { // Pressing the button also shouldn't do anything after the screen is locked. state_controller_->OnStartingLock(); state_controller_->OnLockStateChanged(true); - state_delegate_->LockScreen(); + shell_delegate_->LockScreen(); controller_->OnLockButtonEvent(true, base::TimeTicks::Now()); EXPECT_FALSE(test_api_->lock_timer_is_running()); controller_->OnLockButtonEvent(false, base::TimeTicks::Now()); @@ -571,7 +568,7 @@ TEST_F(PowerButtonControllerTest, RequestShutdownFromLoginScreen) { TEST_F(PowerButtonControllerTest, RequestShutdownFromLockScreen) { state_controller_->OnLoginStateChanged(user::LOGGED_IN_USER); state_controller_->OnLockStateChanged(true); - state_delegate_->LockScreen(); + shell_delegate_->LockScreen(); state_controller_->RequestShutdown(); EXPECT_TRUE( animator_api_->ContainersAreAnimated( @@ -593,7 +590,7 @@ TEST_F(PowerButtonControllerTest, RequestShutdownFromLockScreen) { TEST_F(PowerButtonControllerTest, RequestAndCancelShutdownFromLockScreen) { state_controller_->OnLoginStateChanged(user::LOGGED_IN_USER); state_controller_->OnLockStateChanged(true); - state_delegate_->LockScreen(); + shell_delegate_->LockScreen(); // Press the power button and check that we start the shutdown timer. controller_->OnPowerButtonEvent(true, base::TimeTicks::Now()); diff --git a/ash/wm/session_state_controller_impl2_unittest.cc b/ash/wm/session_state_controller_impl2_unittest.cc index d5aec41..08032e6 100644 --- a/ash/wm/session_state_controller_impl2_unittest.cc +++ b/ash/wm/session_state_controller_impl2_unittest.cc @@ -5,7 +5,6 @@ #include "ash/wm/session_state_controller_impl2.h" #include "ash/ash_switches.h" -#include "ash/session_state_delegate.h" #include "ash/shell.h" #include "ash/shell_window_ids.h" #include "ash/test/ash_test_base.h" @@ -138,7 +137,6 @@ class SessionStateControllerImpl2Test : public AshTestBase { animator_.get())); shell_delegate_ = reinterpret_cast<TestShellDelegate*>( ash::Shell::GetInstance()->delegate()); - state_delegate_ = Shell::GetInstance()->session_state_delegate(); } virtual void TearDown() { @@ -312,7 +310,7 @@ class SessionStateControllerImpl2Test : public AshTestBase { void ExpectUnlockedState() { //TODO (antrim) : restore EXPECT_FALSE(animator_helper_->IsAnimating()); - EXPECT_FALSE(state_delegate_->IsScreenLocked()); + EXPECT_FALSE(shell_delegate_->IsScreenLocked()); aura::Window::Windows containers; @@ -333,7 +331,7 @@ class SessionStateControllerImpl2Test : public AshTestBase { void ExpectLockedState() { //TODO (antrim) : restore EXPECT_FALSE(animator_helper_->IsAnimating()); - EXPECT_TRUE(state_delegate_->IsScreenLocked()); + EXPECT_TRUE(shell_delegate_->IsScreenLocked()); aura::Window::Windows containers; @@ -372,7 +370,7 @@ class SessionStateControllerImpl2Test : public AshTestBase { void SystemLocks() { state_controller_->OnLockStateChanged(true); - state_delegate_->LockScreen(); + shell_delegate_->LockScreen(); //TODO (antrim) : restore animator_helper_->Advance(base::TimeDelta()); } @@ -384,7 +382,7 @@ class SessionStateControllerImpl2Test : public AshTestBase { void SystemUnlocks() { state_controller_->OnLockStateChanged(false); - state_delegate_->UnlockScreen(); + shell_delegate_->UnlockScreen(); //TODO (antrim) : restore animator_helper_->Advance(base::TimeDelta()); } @@ -401,7 +399,6 @@ class SessionStateControllerImpl2Test : public AshTestBase { SessionStateControllerImpl2* state_controller_; // not owned TestSessionStateControllerDelegate* delegate_; // not owned TestShellDelegate* shell_delegate_; // not owned - SessionStateDelegate* state_delegate_; // not owned scoped_ptr<ui::ScopedAnimationDurationScaleMode> animation_duration_mode_; scoped_ptr<SessionStateControllerImpl2::TestApi> test_api_; diff --git a/ash/wm/stacking_controller.cc b/ash/wm/stacking_controller.cc index 3802440b..bbafab48 100644 --- a/ash/wm/stacking_controller.cc +++ b/ash/wm/stacking_controller.cc @@ -5,8 +5,8 @@ #include "ash/wm/stacking_controller.h" #include "ash/display/display_controller.h" -#include "ash/session_state_delegate.h" #include "ash/shell.h" +#include "ash/shell_delegate.h" #include "ash/shell_window_ids.h" #include "ash/wm/always_on_top_controller.h" #include "ash/wm/coordinate_conversion.h" @@ -119,9 +119,8 @@ aura::Window* StackingController::GetSystemModalContainer( // If screen lock is not active and user session is active, // all modal windows are placed into the normal modal container. - if (!Shell::GetInstance()->session_state_delegate()->IsScreenLocked() && - Shell::GetInstance()->session_state_delegate()-> - IsActiveUserSessionStarted()) { + if (!Shell::GetInstance()->delegate()->IsScreenLocked() && + Shell::GetInstance()->delegate()->IsSessionStarted()) { return GetContainerById(root, internal::kShellWindowId_SystemModalContainer); } diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc index d35aaa6..192d5ab 100644 --- a/ash/wm/system_modal_container_layout_manager.cc +++ b/ash/wm/system_modal_container_layout_manager.cc @@ -4,8 +4,8 @@ #include "ash/wm/system_modal_container_layout_manager.h" -#include "ash/session_state_delegate.h" #include "ash/shell.h" +#include "ash/shell_delegate.h" #include "ash/shell_window_ids.h" #include "ash/wm/system_modal_container_event_filter.h" #include "ash/wm/window_animations.h" @@ -67,9 +67,8 @@ void SystemModalContainerLayoutManager::OnWindowAddedToLayout( child->type() == aura::client::WINDOW_TYPE_POPUP); DCHECK( container_->id() != internal::kShellWindowId_LockSystemModalContainer || - Shell::GetInstance()->session_state_delegate()->IsScreenLocked() || - !Shell::GetInstance()->session_state_delegate()-> - IsActiveUserSessionStarted()); + Shell::GetInstance()->delegate()->IsScreenLocked() || + !Shell::GetInstance()->delegate()->IsSessionStarted()); child->AddObserver(this); if (child->GetProperty(aura::client::kModalKey) != ui::MODAL_TYPE_NONE) @@ -139,7 +138,7 @@ bool SystemModalContainerLayoutManager::CanWindowReceiveEvents( return true; // This container can not handle events if the screen is locked and it is not // above the lock screen layer (crbug.com/110920). - if (Shell::GetInstance()->session_state_delegate()->IsScreenLocked() && + if (ash::Shell::GetInstance()->IsScreenLocked() && container_->id() < ash::internal::kShellWindowId_LockScreenContainer) return true; return wm::GetActivatableWindow(window) == modal_window(); diff --git a/ash/wm/system_modal_container_layout_manager_unittest.cc b/ash/wm/system_modal_container_layout_manager_unittest.cc index 15107a4..f7d7373 100644 --- a/ash/wm/system_modal_container_layout_manager_unittest.cc +++ b/ash/wm/system_modal_container_layout_manager_unittest.cc @@ -5,8 +5,8 @@ #include "ash/wm/system_modal_container_layout_manager.h" #include "ash/root_window_controller.h" -#include "ash/session_state_delegate.h" #include "ash/shell.h" +#include "ash/shell_delegate.h" #include "ash/shell_window_ids.h" #include "ash/test/ash_test_base.h" #include "ash/wm/window_util.h" @@ -313,7 +313,7 @@ TEST_F(SystemModalContainerLayoutManagerTest, EventFocusContainers) { // Create a window in the lock screen container and ensure that it receives // the mouse event instead of the modal window (crbug.com/110920). - Shell::GetInstance()->session_state_delegate()->LockScreen(); + Shell::GetInstance()->delegate()->LockScreen(); EventTestWindow* lock_delegate = new EventTestWindow(false); scoped_ptr<aura::Window> lock(lock_delegate->OpenTestWindowWithParent( Shell::GetPrimaryRootWindowController()->GetContainer( @@ -337,7 +337,7 @@ TEST_F(SystemModalContainerLayoutManagerTest, EventFocusContainers) { EXPECT_EQ(1, lock_delegate->mouse_presses()); EXPECT_EQ(1, lock_modal_delegate->mouse_presses()); - Shell::GetInstance()->session_state_delegate()->UnlockScreen(); + Shell::GetInstance()->delegate()->UnlockScreen(); } // Makes sure we don't crash if a modal window is shown while the parent window @@ -409,7 +409,7 @@ TEST_F(SystemModalContainerLayoutManagerTest, ShowNormalBackgroundOrLocked) { // Normal system modal window while locked. Shows locked system modal // background. - Shell::GetInstance()->session_state_delegate()->LockScreen(); + Shell::GetInstance()->delegate()->LockScreen(); scoped_ptr<aura::Window> lock_parent(OpenTestWindowWithParent( Shell::GetPrimaryRootWindowController()->GetContainer( ash::internal::kShellWindowId_LockScreenContainer), diff --git a/ash/wm/window_cycle_controller.cc b/ash/wm/window_cycle_controller.cc index 0cdfcde..86f3cf8 100644 --- a/ash/wm/window_cycle_controller.cc +++ b/ash/wm/window_cycle_controller.cc @@ -6,8 +6,7 @@ #include <algorithm> -#include "ash/session_state_delegate.h" -#include "ash/shell.h" +#include "ash/shell_delegate.h" #include "ash/shell_window_ids.h" #include "ash/wm/activation_controller.h" #include "ash/wm/window_cycle_list.h" @@ -122,7 +121,7 @@ WindowCycleController::~WindowCycleController() { bool WindowCycleController::CanCycle() { // Don't allow window cycling if the screen is locked or a modal dialog is // open. - return !Shell::GetInstance()->session_state_delegate()->IsScreenLocked() && + return !Shell::GetInstance()->IsScreenLocked() && !Shell::GetInstance()->IsSystemModalWindowOpen(); } diff --git a/ash/wm/window_cycle_controller_unittest.cc b/ash/wm/window_cycle_controller_unittest.cc index 186e2bdf7..fabd9d9 100644 --- a/ash/wm/window_cycle_controller_unittest.cc +++ b/ash/wm/window_cycle_controller_unittest.cc @@ -8,7 +8,6 @@ #include "ash/display/display_controller.h" #include "ash/display/display_manager.h" -#include "ash/session_state_delegate.h" #include "ash/shell.h" #include "ash/shell_window_ids.h" #include "ash/test/ash_test_base.h" @@ -146,14 +145,14 @@ TEST_F(WindowCycleControllerTest, HandleCycleWindow) { EXPECT_TRUE(wm::IsActiveWindow(window0.get())); // When the screen is locked, cycling window does not take effect. - Shell::GetInstance()->session_state_delegate()->LockScreen(); + Shell::GetInstance()->delegate()->LockScreen(); EXPECT_TRUE(wm::IsActiveWindow(window0.get())); controller->HandleCycleWindow(WindowCycleController::FORWARD, false); EXPECT_TRUE(wm::IsActiveWindow(window0.get())); controller->HandleCycleWindow(WindowCycleController::BACKWARD, false); EXPECT_TRUE(wm::IsActiveWindow(window0.get())); - Shell::GetInstance()->session_state_delegate()->UnlockScreen(); + Shell::GetInstance()->delegate()->UnlockScreen(); EXPECT_TRUE(wm::IsActiveWindow(window0.get())); controller->HandleCycleWindow(WindowCycleController::FORWARD, false); EXPECT_TRUE(wm::IsActiveWindow(window1.get())); diff --git a/ash/wm/workspace/workspace_cycler.cc b/ash/wm/workspace/workspace_cycler.cc index 9d4cda1..6731993 100644 --- a/ash/wm/workspace/workspace_cycler.cc +++ b/ash/wm/workspace/workspace_cycler.cc @@ -6,7 +6,6 @@ #include <cmath> -#include "ash/session_state_delegate.h" #include "ash/shell.h" #include "ash/wm/workspace/workspace_cycler_configuration.h" #include "ash/wm/workspace/workspace_manager.h" @@ -23,7 +22,7 @@ namespace { // Returns true if cycling is allowed. bool IsCyclingAllowed() { // Cycling is disabled if the screen is locked or a modal dialog is open. - return !Shell::GetInstance()->session_state_delegate()->IsScreenLocked() && + return !Shell::GetInstance()->IsScreenLocked() && !Shell::GetInstance()->IsSystemModalWindowOpen(); } diff --git a/ash/wm/workspace/workspace_layout_manager.cc b/ash/wm/workspace/workspace_layout_manager.cc index 1d4dc62..1b052d2 100644 --- a/ash/wm/workspace/workspace_layout_manager.cc +++ b/ash/wm/workspace/workspace_layout_manager.cc @@ -6,7 +6,6 @@ #include "ash/ash_switches.h" #include "ash/screen_ash.h" -#include "ash/session_state_delegate.h" #include "ash/shell.h" #include "ash/wm/always_on_top_controller.h" #include "ash/wm/base_layout_manager.h" @@ -289,7 +288,7 @@ void WorkspaceLayoutManager::AdjustWindowSizesForScreenChange( // This would happen if the launcher was auto hidden before the login screen // was shown and then gets shown when the login screen gets presented. if (reason == ADJUST_WINDOW_DISPLAY_INSETS_CHANGED && - Shell::GetInstance()->session_state_delegate()->IsScreenLocked()) + Shell::GetInstance()->IsScreenLocked()) return; work_area_ = ScreenAsh::GetDisplayWorkAreaBoundsInParent( workspace_->window()->parent()); |