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

Unified Diff: ash/common/wm/lock_window_state.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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/wm/lock_state_observer.h ('k') | ash/common/wm/lock_window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/lock_window_state.h
diff --git a/ash/common/wm/lock_window_state.h b/ash/common/wm/lock_window_state.h
deleted file mode 100644
index e8abfc7dc934073d3a6b0a79df5050da08aba8e6..0000000000000000000000000000000000000000
--- a/ash/common/wm/lock_window_state.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_WM_LOCK_WINDOW_STATE_H_
-#define ASH_COMMON_WM_LOCK_WINDOW_STATE_H_
-
-#include "ash/common/wm/window_state.h"
-#include "base/macros.h"
-
-namespace ash {
-
-// The LockWindowState implementation which reduces all possible window
-// states to maximized (or normal if can't be maximized)/minimized/full-screen
-// and is applied only on lock (login) window container.
-// LockWindowState implements Ash behavior without state machine.
-class LockWindowState : public wm::WindowState::State {
- public:
- // The |window|'s state object will be modified to use this new window mode
- // state handler.
- explicit LockWindowState(WmWindow* window);
- ~LockWindowState() override;
-
- // WindowState::State overrides:
- void OnWMEvent(wm::WindowState* window_state,
- const wm::WMEvent* event) override;
- wm::WindowStateType GetType() const override;
- void AttachState(wm::WindowState* window_state,
- wm::WindowState::State* previous_state) override;
- void DetachState(wm::WindowState* window_state) override;
-
- // Creates new LockWindowState instance and attaches it to |window|.
- static wm::WindowState* SetLockWindowState(WmWindow* window);
-
- private:
- // Updates the window to |new_state_type| and resulting bounds:
- // Either full screen, maximized centered or minimized. If the state does not
- // change, only the bounds will be changed.
- void UpdateWindow(wm::WindowState* window_state,
- wm::WindowStateType new_state_type);
-
- // Depending on the capabilities of the window we either return
- // |WINDOW_STATE_TYPE_MAXIMIZED| or |WINDOW_STATE_TYPE_NORMAL|.
- wm::WindowStateType GetMaximizedOrCenteredWindowType(
- wm::WindowState* window_state);
-
- // Updates the bounds taking virtual keyboard bounds into consideration.
- void UpdateBounds(wm::WindowState* window_state);
-
- // The current state type. Due to the nature of this state, this can only be
- // WM_STATE_TYPE{NORMAL, MINIMIZED, MAXIMIZED}.
- wm::WindowStateType current_state_type_;
-
- DISALLOW_COPY_AND_ASSIGN(LockWindowState);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_WM_LOCK_WINDOW_STATE_H_
« no previous file with comments | « ash/common/wm/lock_state_observer.h ('k') | ash/common/wm/lock_window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698