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

Unified Diff: ash/wm/dock/dock_edge_types.h

Issue 13896026: Stick windows to sides of workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dock on left or right edge 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/dock/dock_edge_types.h
diff --git a/ash/wm/dock/dock_edge_types.h b/ash/wm/dock/dock_edge_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..1cac67731742485ecc9daf66b16628f1aad61307
--- /dev/null
+++ b/ash/wm/dock/dock_edge_types.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_WM_DOCK_DOCK_EDGE_TYPES_H_
+#define ASH_WM_DOCK_DOCK_EDGE_TYPES_H_
+
+namespace ash {
+
+// Enum for bits that contain edges that a window can be stuck to.
+// Multiple edges can be combined in a bitmask.
+enum DockEdge {
+ DOCK_EDGE_NONE = 0,
+ DOCK_EDGE_LEFT = 1 << 0,
+ DOCK_EDGE_RIGHT = 1 << 1,
+ DOCK_EDGE_TOP = 1 << 2,
+ DOCK_EDGE_BOTTOM = 1 << 3,
+};
+
+const uint32 kAllDockEdges =
+ DOCK_EDGE_LEFT | DOCK_EDGE_RIGHT | DOCK_EDGE_TOP | DOCK_EDGE_BOTTOM;
+
+} // namespace ash
+
+#endif // ASH_WM_DOCK_DOCK_EDGE_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698