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

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

Issue 13896026: Stick windows to sides of workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Correcting logic to avoid getting stuck on resize Created 7 years, 7 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/workspace/workspace_layout_manager.h
diff --git a/ash/wm/workspace/workspace_layout_manager.h b/ash/wm/workspace/workspace_layout_manager.h
index 50942682f7dbc7b7ceaca747630290a8dd33d1c2..21f909ea179b308f9bb16e1bd8fc9449ecd7e6c5 100644
--- a/ash/wm/workspace/workspace_layout_manager.h
+++ b/ash/wm/workspace/workspace_layout_manager.h
@@ -107,6 +107,13 @@ class ASH_EXPORT WorkspaceLayoutManager
// true is returned. Does nothing otherwise.
bool SetMaximizedOrFullscreenBounds(aura::Window* window);
+ // set the bitmask with edges
+ int CalculateStuckEdges(aura::Window* window);
+
+ // restores stuck state for edges
+ gfx::Rect AdjustWindowBoundsForStuckEdges(aura::Window* window,
+ const gfx::Rect& bounds);
+
WorkspaceManager* workspace_manager();
aura::RootWindow* root_window_;

Powered by Google App Engine
This is Rietveld 408576698