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

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: Docking with dock width=0 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/property_util.h
diff --git a/ash/wm/property_util.h b/ash/wm/property_util.h
index 97d7b24b4cac6f16b0e5e867f407ec34e29b82bf..108f68c6d81799a4b6078c537cb2bd69cc9dde59 100644
--- a/ash/wm/property_util.h
+++ b/ash/wm/property_util.h
@@ -6,6 +6,7 @@
#define ASH_WM_PROPERTY_UTIL_H_
#include "ash/ash_export.h"
+#include "base/basictypes.h"
namespace aura {
class RootWindow;
@@ -62,6 +63,19 @@ ASH_EXPORT void SetWindowAlwaysRestoresToRestoreBounds(aura::Window* window,
ASH_EXPORT bool GetWindowAlwaysRestoresToRestoreBounds(
const aura::Window* window);
+// Enum for possible edges that a window is docked on to the dock
+enum DockEdge {
+ DOCK_EDGE_NONE,
+ DOCK_EDGE_LEFT,
+ DOCK_EDGE_RIGHT,
+};
flackr 2013/06/03 22:03:43 I'm not sure if we need to track which edge each w
varkha 2013/06/04 03:13:50 I thought this allows to keep the logic of compari
flackr 2013/06/04 19:58:10 At the point when you determine the dock edge, you
+
+// Sets whether the specified window is docked near a screen edge.
+// Default is DOCK_EDGE_NONE and may change when a window is moved by user or
+// when the dock alignment is changed.
flackr 2013/06/03 22:03:43 You mean when the shelf alignment is changed right
varkha 2013/06/04 03:13:50 Done.
+ASH_EXPORT void SetDockEdge(aura::Window* window, DockEdge value);
+ASH_EXPORT DockEdge GetDockEdge(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