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

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 (nits) 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..e1781b849c71d63baa30ff332177d752f27dad0c 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);
+ // Adjusts the |bounds| so that they are flush with the edge of the
+ // workspace if the window represented by |window_state| is side snapped.
+ void AdjustSnappedBounds(wm::WindowState* window_state, gfx::Rect* bounds);
+
+ // Animates the window bounds to |bounds|.
+ void SetChildBoundsAnimated(aura::Window* child, const gfx::Rect& bounds);
+
internal::ShelfLayoutManager* shelf_;
aura::Window* window_;

Powered by Google App Engine
This is Rietveld 408576698