| 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;
|
|
|
|
|