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

Unified Diff: ash/common/shelf/wm_shelf.h

Issue 2228713003: mash: Convert ShelfView to wm common types, clean up Shelf access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix control reaches end of non-void function warnings Created 4 years, 4 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
« no previous file with comments | « ash/common/shelf/shelf_view.cc ('k') | ash/common/shelf/wm_shelf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/wm_shelf.h
diff --git a/ash/common/shelf/wm_shelf.h b/ash/common/shelf/wm_shelf.h
index 1040adb65a9b33215b803c4ec19f5de211a6b50f..30607d04ab9c2a754ea7cc78846218af86034be7 100644
--- a/ash/common/shelf/wm_shelf.h
+++ b/ash/common/shelf/wm_shelf.h
@@ -33,6 +33,15 @@ class ASH_EXPORT WmShelf {
virtual ShelfAlignment GetAlignment() const = 0;
virtual void SetAlignment(ShelfAlignment alignment) = 0;
+ // Returns true if the shelf alignment is horizontal (i.e. at the bottom).
+ bool IsHorizontalAlignment() const;
+
+ // Returns a value based on shelf alignment.
+ int SelectValueForShelfAlignment(int bottom, int left, int right) const;
+
+ // Returns |horizontal| is shelf is horizontal, otherwise |vertical|.
+ int PrimaryAxisValue(int horizontal, int vertical) const;
+
virtual ShelfAutoHideBehavior GetAutoHideBehavior() const = 0;
virtual void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) = 0;
« no previous file with comments | « ash/common/shelf/shelf_view.cc ('k') | ash/common/shelf/wm_shelf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698