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

Unified Diff: ash/wm/workspace/workspace_layout_manager.h

Issue 68033003: Undocks window first before side-snapping bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undocks window first before side-snapping bounds (rebase) Created 7 years, 1 month 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/workspace/workspace_layout_manager.h
diff --git a/ash/wm/workspace/workspace_layout_manager.h b/ash/wm/workspace/workspace_layout_manager.h
index 30a88f2e4afcddfe74be94ad2c82473faec96af7..8e679929008a4590b92533b691f7cb57e58ce6e6 100644
--- a/ash/wm/workspace/workspace_layout_manager.h
+++ b/ash/wm/workspace/workspace_layout_manager.h
@@ -87,6 +87,13 @@ class ASH_EXPORT WorkspaceLayoutManager : public BaseLayoutManager {
// window are set and true is returned. Does nothing otherwise.
bool SetMaximizedOrFullscreenBounds(wm::WindowState* window_state);
+ // Restores side-snapped state when window or work area bounds change.
+ void AdjustSnappedBounds(wm::WindowState* window_state, gfx::Rect* bounds);
+
+ // Animates window bounds to a new location when work area bounds change or
+ // when window bounds change for a side-snapped window.
+ void SetChildBoundsAnimated(aura::Window* child, const gfx::Rect& bounds);
+
internal::ShelfLayoutManager* shelf_;
aura::Window* window_;

Powered by Google App Engine
This is Rietveld 408576698