| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_COMMON_SHELF_SHELF_TYPES_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_TYPES_H_ |
| 6 #define ASH_COMMON_SHELF_SHELF_TYPES_H_ | 6 #define ASH_COMMON_SHELF_SHELF_TYPES_H_ |
| 7 | 7 |
| 8 // TODO(sky): make callers explicitly include this. | 8 namespace ash { |
| 9 #include "ash/common/wm/shelf/wm_shelf_types.h" | |
| 10 | 9 |
| 11 namespace ash { | 10 enum ShelfAlignment { |
| 11 SHELF_ALIGNMENT_BOTTOM, |
| 12 SHELF_ALIGNMENT_LEFT, |
| 13 SHELF_ALIGNMENT_RIGHT, |
| 14 // Top has never been supported. |
| 15 |
| 16 // The locked alignment is set temporarily and not saved to preferences. |
| 17 SHELF_ALIGNMENT_BOTTOM_LOCKED, |
| 18 }; |
| 12 | 19 |
| 13 enum ShelfAutoHideBehavior { | 20 enum ShelfAutoHideBehavior { |
| 14 // Always auto-hide. | 21 // Always auto-hide. |
| 15 SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS, | 22 SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS, |
| 16 | 23 |
| 17 // Never auto-hide. | 24 // Never auto-hide. |
| 18 SHELF_AUTO_HIDE_BEHAVIOR_NEVER, | 25 SHELF_AUTO_HIDE_BEHAVIOR_NEVER, |
| 19 | 26 |
| 20 // Always hide. | 27 // Always hide. |
| 21 SHELF_AUTO_HIDE_ALWAYS_HIDDEN, | 28 SHELF_AUTO_HIDE_ALWAYS_HIDDEN, |
| 22 }; | 29 }; |
| 23 | 30 |
| 24 enum ShelfAutoHideState { | 31 enum ShelfAutoHideState { |
| 25 SHELF_AUTO_HIDE_SHOWN, | 32 SHELF_AUTO_HIDE_SHOWN, |
| 26 SHELF_AUTO_HIDE_HIDDEN, | 33 SHELF_AUTO_HIDE_HIDDEN, |
| 27 }; | 34 }; |
| 28 | 35 |
| 29 enum ShelfVisibilityState { | 36 enum ShelfVisibilityState { |
| 30 // Always visible. | 37 // Always visible. |
| 31 SHELF_VISIBLE, | 38 SHELF_VISIBLE, |
| 32 | 39 |
| 33 // A couple of pixels are reserved at the bottom for the shelf. | 40 // A couple of pixels are reserved at the bottom for the shelf. |
| 34 SHELF_AUTO_HIDE, | 41 SHELF_AUTO_HIDE, |
| 35 | 42 |
| 36 // Nothing is shown. Used for fullscreen windows. | 43 // Nothing is shown. Used for fullscreen windows. |
| 37 SHELF_HIDDEN, | 44 SHELF_HIDDEN, |
| 38 }; | 45 }; |
| 39 | 46 |
| 47 enum ShelfBackgroundType { |
| 48 // The default transparent background. |
| 49 SHELF_BACKGROUND_DEFAULT, |
| 50 |
| 51 // The background when a window is overlapping. |
| 52 SHELF_BACKGROUND_OVERLAP, |
| 53 |
| 54 // The background when a window is maximized. |
| 55 SHELF_BACKGROUND_MAXIMIZED, |
| 56 }; |
| 57 |
| 40 } // namespace ash | 58 } // namespace ash |
| 41 | 59 |
| 42 #endif // ASH_COMMON_SHELF_SHELF_TYPES_H_ | 60 #endif // ASH_COMMON_SHELF_SHELF_TYPES_H_ |
| OLD | NEW |