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

Unified Diff: ash/wm/maximize_mode/maximize_mode_window_state.h

Issue 247363005: Fullscreen/immersive mode is allowed in touch view mode, the shelf gets hidden and an edge swipe br… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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
Index: ash/wm/maximize_mode/maximize_mode_window_state.h
diff --git a/ash/wm/maximize_mode/maximize_mode_window_state.h b/ash/wm/maximize_mode/maximize_mode_window_state.h
index f1b826efc470cc560872f0bbcd2ece957dae38f1..093f46be0203ff2c303422a64e7b91376c77ea54 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_state.h
+++ b/ash/wm/maximize_mode/maximize_mode_window_state.h
@@ -41,12 +41,22 @@ class MaximizeModeWindowState : public wm::WindowState::State {
virtual void DetachState(wm::WindowState* window_state) OVERRIDE;
private:
- // Centers the window on top of the workspace or maximizes it. If |animate| is
- // set to true, a bounds change will be animated - otherwise immediate.
- void MaximizeOrCenterWindow(wm::WindowState* window_state, bool animate);
-
- // Minimize the window.
- void Minimize(wm::WindowState* window_state);
+ // 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. If |animate| is set, the bound
+ // change get animated.
+ void UpdateWindow(wm::WindowState* window_state,
+ wm::WindowStateType new_state_type,
+ bool animate);
+
+ // 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 to the maximum possible bounds according to the current
+ // window state. If |animated| is set we animate the change.
+ void UpdateBounds(wm::WindowState* window_state, bool animated);
// The original state object of the window.
scoped_ptr<wm::WindowState::State> old_state_;
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc ('k') | ash/wm/maximize_mode/maximize_mode_window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698