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

Unified Diff: ash/wm/workspace/workspace_window_resizer.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_window_resizer.h
diff --git a/ash/wm/workspace/workspace_window_resizer.h b/ash/wm/workspace/workspace_window_resizer.h
index 424e47d29f4890086fa5d3e49d694360e1a3eb2b..3a677020e202be14e3a2597ba1eeda45785be1c3 100644
--- a/ash/wm/workspace/workspace_window_resizer.h
+++ b/ash/wm/workspace/workspace_window_resizer.h
@@ -60,6 +60,10 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
return details_.initial_location_in_parent;
}
+ // Returns a bitmask of all edges touching the work area bounds
+ static int CalculateStuckEdges(const gfx::Rect& bounds,
+ const gfx::Rect& work_area);
+
private:
WorkspaceWindowResizer(const Details& details,
const std::vector<aura::Window*>& attached_windows);

Powered by Google App Engine
This is Rietveld 408576698