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

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

Issue 2918403006: CrOS Tablet Window management - Split Screen part I (Closed)
Patch Set: Add unittests. Will split the CL into two CLs. 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
+ // window we either return |WINDOW_STATE_TYPE_MAXIMIZED| or
+ // |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);
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager.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