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

Unified Diff: ash/wm/workspace/stuck_edge_types.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/stuck_edge_types.h
diff --git a/ash/wm/workspace/stuck_edge_types.h b/ash/wm/workspace/stuck_edge_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..6127a7e4a2ff1129406130cffddaa4f381bd8cde
--- /dev/null
+++ b/ash/wm/workspace/stuck_edge_types.h
@@ -0,0 +1,26 @@
+// 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_WORKSPACE_STUCK_EDGE_TYPES_H_
+#define ASH_WM_WORKSPACE_STUCK_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 StuckEdge {
+ STUCK_EDGE_NONE = 0,
+ STUCK_EDGE_LEFT = 1 << 0,
+ STUCK_EDGE_RIGHT = 1 << 1,
+ STUCK_EDGE_TOP = 1 << 2,
+ STUCK_EDGE_BOTTOM = 1 << 3,
+};
+
+const uint32 kAllStuckEdges =
+ STUCK_EDGE_LEFT | STUCK_EDGE_RIGHT | STUCK_EDGE_TOP | STUCK_EDGE_BOTTOM;
+
+} // namespace ash
+
+#endif // ASH_WM_WORKSPACE_STUCK_EDGE_TYPES_H_
+

Powered by Google App Engine
This is Rietveld 408576698