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

Unified Diff: ash/wm/property_util.h

Issue 13896026: Stick windows to sides of workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Preserve docked state when launcher auto-hide changes. Created 7 years, 8 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/property_util.h
diff --git a/ash/wm/property_util.h b/ash/wm/property_util.h
index 97d7b24b4cac6f16b0e5e867f407ec34e29b82bf..f7c7649adcbba559228d6a3dc4171e62277d354e 100644
--- a/ash/wm/property_util.h
+++ b/ash/wm/property_util.h
@@ -62,6 +62,12 @@ ASH_EXPORT void SetWindowAlwaysRestoresToRestoreBounds(aura::Window* window,
ASH_EXPORT bool GetWindowAlwaysRestoresToRestoreBounds(
const aura::Window* window);
+// Sets whether the specified window is glued or "stuck" to a workspace edge.
+// Default is false and is changing when a window is resized or when its
+// maximized state changes. This is used in gutter implementation.
+ASH_EXPORT void SetStuckToEdge(aura::Window* window, int value);
+ASH_EXPORT int GetStuckToEdge(const aura::Window* window);
+
// Sets whether the specified window is tracked by workspace code. Default is
// true. If set to false the workspace does not switch the current workspace,
// nor does it attempt to impose constraints on the bounds of the window. This

Powered by Google App Engine
This is Rietveld 408576698