OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CONSTANTS_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ |
6 #define ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | 6 #define ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 | 12 |
13 enum ShelfConstant { | 13 enum ShelfConstant { |
14 // The alpha value for the shelf background when a window is overlapping. | |
15 SHELF_BACKGROUND_ALPHA, | |
16 | |
17 // Size of the shelf when visible (height when the shelf is horizontal and | 14 // Size of the shelf when visible (height when the shelf is horizontal and |
18 // width when the shelf is vertical). | 15 // width when the shelf is vertical). |
19 SHELF_SIZE, | 16 SHELF_SIZE, |
20 | 17 |
21 // Size of the space between buttons on the shelf. | 18 // Size of the space between buttons on the shelf. |
22 SHELF_BUTTON_SPACING, | 19 SHELF_BUTTON_SPACING, |
23 | 20 |
24 // Size allocated for each app button on the shelf. | 21 // Size allocated for each app button on the shelf. |
25 SHELF_BUTTON_SIZE, | 22 SHELF_BUTTON_SIZE, |
26 | 23 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // Ink drop color for shelf items. | 55 // Ink drop color for shelf items. |
59 extern const SkColor kShelfInkDropBaseColor; | 56 extern const SkColor kShelfInkDropBaseColor; |
60 | 57 |
61 // Opacity of the ink drop ripple for shelf items when the ripple is visible. | 58 // Opacity of the ink drop ripple for shelf items when the ripple is visible. |
62 extern const float kShelfInkDropVisibleOpacity; | 59 extern const float kShelfInkDropVisibleOpacity; |
63 | 60 |
64 // The foreground color of the icons used in the shelf (launcher, | 61 // The foreground color of the icons used in the shelf (launcher, |
65 // notifications, etc). | 62 // notifications, etc). |
66 ASH_EXPORT extern const SkColor kShelfIconColor; | 63 ASH_EXPORT extern const SkColor kShelfIconColor; |
67 | 64 |
| 65 // The alpha value for the shelf background when a window is overlapping. |
| 66 ASH_EXPORT extern const int kShelfTranslucentAlpha; |
| 67 |
68 // The width and height of the material design overflow button. | 68 // The width and height of the material design overflow button. |
69 // TODO(tdanderson): Refactor constants which are common between the shelf | 69 // TODO(tdanderson): Refactor constants which are common between the shelf |
70 // and the tray. See crbug.com/623987. | 70 // and the tray. See crbug.com/623987. |
71 extern const int kOverflowButtonSize; | 71 extern const int kOverflowButtonSize; |
72 | 72 |
73 // The radius of the rounded corners of the overflow button. | 73 // The radius of the rounded corners of the overflow button. |
74 extern const int kOverflowButtonCornerRadius; | 74 extern const int kOverflowButtonCornerRadius; |
75 | 75 |
76 // The radius of the circular material design app list button. | 76 // The radius of the circular material design app list button. |
77 extern const int kAppListButtonRadius; | 77 extern const int kAppListButtonRadius; |
78 | 78 |
79 // The direction of the focus cycling. | 79 // The direction of the focus cycling. |
80 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; | 80 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; |
81 | 81 |
82 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); | 82 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); |
83 | 83 |
84 } // namespace ash | 84 } // namespace ash |
85 | 85 |
86 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | 86 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ |
OLD | NEW |