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. | 14 // The alpha value for the shelf background when a window is overlapping. |
15 SHELF_BACKGROUND_ALPHA, | 15 SHELF_BACKGROUND_ALPHA, |
16 | 16 |
17 // Size of the shelf when visible (height when the shelf is horizontal and | 17 // Size of the shelf when visible (height when the shelf is horizontal and |
18 // width when the shelf is vertical). | 18 // width when the shelf is vertical). |
19 SHELF_SIZE, | 19 SHELF_SIZE, |
20 | 20 |
21 // Size of the space between buttons on the shelf. | 21 // Size of the space between buttons on the shelf. |
22 SHELF_BUTTON_SPACING, | 22 SHELF_BUTTON_SPACING, |
23 | 23 |
24 // Size allocated for each button on the shelf. | 24 // Size allocated for each app button on the shelf. |
25 SHELF_BUTTON_SIZE, | 25 SHELF_BUTTON_SIZE, |
26 | 26 |
27 // Insets allocated for shelf when it is auto hidden. | 27 // Insets allocated for shelf when it is auto hidden. |
28 SHELF_INSETS_FOR_AUTO_HIDE | 28 SHELF_INSETS_FOR_AUTO_HIDE |
29 }; | 29 }; |
30 | 30 |
31 // Invalid image resource id used for ShelfItemDetails. | 31 // Invalid image resource id used for ShelfItemDetails. |
32 extern const int kInvalidImageResourceID; | 32 extern const int kInvalidImageResourceID; |
33 | 33 |
34 // We reserve a small area on the edge of the workspace area to ensure that | 34 // We reserve a small area on the edge of the workspace area to ensure that |
(...skipping 25 matching lines...) Expand all Loading... |
60 // using the material design ripple animation. | 60 // using the material design ripple animation. |
61 ASH_EXPORT extern const SkColor kShelfButtonActivatedHighlightColor; | 61 ASH_EXPORT extern const SkColor kShelfButtonActivatedHighlightColor; |
62 | 62 |
63 // Opacity of the ink drop ripple for shelf items when the ripple is visible. | 63 // Opacity of the ink drop ripple for shelf items when the ripple is visible. |
64 extern const float kShelfInkDropVisibleOpacity; | 64 extern const float kShelfInkDropVisibleOpacity; |
65 | 65 |
66 // The foreground color of the icons used in the shelf (launcher, | 66 // The foreground color of the icons used in the shelf (launcher, |
67 // notifications, etc). | 67 // notifications, etc). |
68 ASH_EXPORT extern const SkColor kShelfIconColor; | 68 ASH_EXPORT extern const SkColor kShelfIconColor; |
69 | 69 |
| 70 // The width and height of the material design overflow button. |
| 71 // TODO(tdanderson): Refactor constants which are common between the shelf |
| 72 // and the tray. See crbug.com/623987. |
| 73 extern const int kOverflowButtonSize; |
| 74 |
| 75 // The radius of the rounded corners of the overflow button. |
| 76 extern const int kOverflowButtonCornerRadius; |
| 77 |
| 78 // The radius of the circular material design app list button. |
| 79 extern const int kAppListButtonRadius; |
| 80 |
70 // The direction of the focus cycling. | 81 // The direction of the focus cycling. |
71 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; | 82 enum CycleDirection { CYCLE_FORWARD, CYCLE_BACKWARD }; |
72 | 83 |
73 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); | 84 ASH_EXPORT int GetShelfConstant(ShelfConstant shelf_constant); |
74 | 85 |
75 } // namespace ash | 86 } // namespace ash |
76 | 87 |
77 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ | 88 #endif // ASH_COMMON_SHELF_SHELF_CONSTANTS_H_ |
OLD | NEW |