| 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..45b79cb8f91259b0cfc00478a74c820ca29c91b3 100644
|
| --- a/ash/wm/maximize_mode/maximize_mode_window_state.h
|
| +++ b/ash/wm/maximize_mode/maximize_mode_window_state.h
|
| @@ -41,9 +41,17 @@ 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);
|
| + enum ShowState {
|
| + MAXIMIZED_OR_CENTERED, // The window is either maximized or centered.
|
| + FULL_SCREEN // The window is full screen.
|
| + };
|
| + // Shows the window either fullscreen, maximized or centered on the screen -
|
| + // dependent on flags and window capabilities. |show_state| defines if either
|
| + // full screen or maximized / centered should be used. If |animate| is set, a
|
| + // bounds change will be animated, otherwise it will immediately be set.
|
| + void ShowWindow(wm::WindowState* window_state,
|
| + ShowState show_state,
|
| + bool animate);
|
|
|
| // Minimize the window.
|
| void Minimize(wm::WindowState* window_state);
|
|
|