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

Unified Diff: ash/shelf/shelf_util.cc

Issue 1877543002: Revise the shelf alignment locking mechanism. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move logic to a new ShelfLockingManager, owned by Shelf. Created 4 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/shelf/shelf_util.cc
diff --git a/ash/shelf/shelf_util.cc b/ash/shelf/shelf_util.cc
index 70fa02b23ca17402fae4907284ef128904445cbf..1f0067b6cd39cdf6378aedf8f3f993b3371db048 100644
--- a/ash/shelf/shelf_util.cc
+++ b/ash/shelf/shelf_util.cc
@@ -58,4 +58,9 @@ const ShelfItemDetails* GetShelfItemDetailsForWindow(
return window->GetProperty(kShelfItemDetailsKey);
}
+bool IsHorizontalAlignment(ShelfAlignment alignment) {
+ return alignment == SHELF_ALIGNMENT_BOTTOM ||
+ alignment == SHELF_ALIGNMENT_LOCKED;
+}
+
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698