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_SHELF_SHELF_TYPES_H_ | 5 #ifndef ASH_SHELF_SHELF_TYPES_H_ |
6 #define ASH_SHELF_SHELF_TYPES_H_ | 6 #define ASH_SHELF_SHELF_TYPES_H_ |
7 | 7 |
| 8 // TODO(sky): make callers explicitly include this. |
| 9 #include "ash/wm/common/shelf/wm_shelf_types.h" |
| 10 |
8 namespace ash { | 11 namespace ash { |
9 | 12 |
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 }; | |
19 | |
20 enum ShelfAutoHideBehavior { | 13 enum ShelfAutoHideBehavior { |
21 // Always auto-hide. | 14 // Always auto-hide. |
22 SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS, | 15 SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS, |
23 | 16 |
24 // Never auto-hide. | 17 // Never auto-hide. |
25 SHELF_AUTO_HIDE_BEHAVIOR_NEVER, | 18 SHELF_AUTO_HIDE_BEHAVIOR_NEVER, |
26 | 19 |
27 // Always hide. | 20 // Always hide. |
28 SHELF_AUTO_HIDE_ALWAYS_HIDDEN, | 21 SHELF_AUTO_HIDE_ALWAYS_HIDDEN, |
29 }; | 22 }; |
30 | 23 |
31 enum ShelfVisibilityState { | 24 enum ShelfVisibilityState { |
32 // Always visible. | 25 // Always visible. |
33 SHELF_VISIBLE, | 26 SHELF_VISIBLE, |
34 | 27 |
35 // A couple of pixels are reserved at the bottom for the shelf. | 28 // A couple of pixels are reserved at the bottom for the shelf. |
36 SHELF_AUTO_HIDE, | 29 SHELF_AUTO_HIDE, |
37 | 30 |
38 // Nothing is shown. Used for fullscreen windows. | 31 // Nothing is shown. Used for fullscreen windows. |
39 SHELF_HIDDEN, | 32 SHELF_HIDDEN, |
40 }; | 33 }; |
41 | 34 |
42 enum ShelfAutoHideState { | 35 enum ShelfAutoHideState { |
43 SHELF_AUTO_HIDE_SHOWN, | 36 SHELF_AUTO_HIDE_SHOWN, |
44 SHELF_AUTO_HIDE_HIDDEN, | 37 SHELF_AUTO_HIDE_HIDDEN, |
45 }; | 38 }; |
46 | 39 |
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 | |
58 } // namespace ash | 40 } // namespace ash |
59 | 41 |
60 #endif // ASH_SHELF_SHELF_TYPES_H_ | 42 #endif // ASH_SHELF_SHELF_TYPES_H_ |
OLD | NEW |