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

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

Issue 2960843004: CrOS Tablet Window management - Split Screen part I (Closed)
Patch Set: nit. Created 3 years, 6 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 4ab3d5a2712149ba11213ba2c69f1a9c0c6cc658..e1e9d41516ed8b0ecd6e5863d4bfa9aa18935e30 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_state.h
+++ b/ash/wm/maximize_mode/maximize_mode_window_state.h
@@ -62,6 +62,14 @@ class MaximizeModeWindowState : public wm::WindowState::State {
wm::WindowStateType GetMaximizedOrCenteredWindowType(
wm::WindowState* window_state);
+ // If |target_state| is LEFT/RIGHT_SNAPPED and the window can be snapped,
+ // return |target_state|. Otherwise depending on the capabilities of the
varkha 2017/06/30 14:29:35 nit: returns
xdai1 2017/07/05 20:18:22 Done.
+ // window we either return |WINDOW_STATE_TYPE_MAXIMIZED| or
varkha 2017/06/30 14:29:34 nit: drop 'we' and return -> returns
xdai1 2017/07/05 20:18:22 Done.
+ // |WINDOW_STATE_TYPE_NORMAL|.
+ wm::WindowStateType GetSnappedWindowStateType(
+ wm::WindowState* window_state,
+ wm::WindowStateType target_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);

Powered by Google App Engine
This is Rietveld 408576698