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_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 | 9 |
10 typedef unsigned int SkColor; | 10 typedef unsigned int SkColor; |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 | 13 |
14 extern const int kPaddingFromRightEdgeOfScreenBottomAlignment; | 14 extern const int kPaddingFromRightEdgeOfScreenBottomAlignment; |
15 extern const int kPaddingFromBottomOfScreenBottomAlignment; | 15 extern const int kPaddingFromBottomOfScreenBottomAlignment; |
16 extern const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment; | 16 extern const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment; |
17 extern const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment; | 17 extern const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment; |
18 extern const int kPaddingFromBottomOfScreenVerticalAlignment; | 18 extern const int kPaddingFromBottomOfScreenVerticalAlignment; |
19 | 19 |
20 extern const int kBubblePaddingHorizontalBottom; | 20 extern const int kBubblePaddingHorizontalBottom; |
21 extern const int kBubblePaddingHorizontalSide; | 21 extern const int kBubblePaddingHorizontalSide; |
22 extern const int kBubblePaddingVerticalBottom; | 22 extern const int kBubblePaddingVerticalBottom; |
23 extern const int kBubblePaddingVerticalSide; | 23 extern const int kBubblePaddingVerticalSide; |
24 | 24 |
25 extern const int kAdjustBackgroundPadding; | |
26 | |
27 extern const int kTrayBubbleAnchorTopInsetBottomAnchor; | 25 extern const int kTrayBubbleAnchorTopInsetBottomAnchor; |
28 | 26 |
29 extern const int kTrayImageItemHorizontalPaddingBottomAlignment; | 27 extern const int kTrayImageItemHorizontalPaddingBottomAlignment; |
30 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment; | 28 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment; |
31 extern const int kTrayImageItemVerticalPaddingVerticalAlignment; | 29 extern const int kTrayImageItemVerticalPaddingVerticalAlignment; |
32 | 30 |
33 ASH_EXPORT extern const int kTrayItemSize; | 31 ASH_EXPORT extern const int kTrayItemSize; |
34 | 32 |
35 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; | 33 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; |
36 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; | 34 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; |
37 | 35 |
38 extern const int kTrayMenuBottomRowPadding; | 36 extern const int kTrayMenuBottomRowPadding; |
39 extern const int kTrayMenuBottomRowPaddingBetweenItems; | 37 extern const int kTrayMenuBottomRowPaddingBetweenItems; |
40 | 38 |
41 extern const int kTrayPopupAutoCloseDelayInSeconds; | 39 extern const int kTrayPopupAutoCloseDelayInSeconds; |
42 extern const int kTrayPopupAutoCloseDelayForTextInSeconds; | 40 extern const int kTrayPopupAutoCloseDelayForTextInSeconds; |
43 extern const int kTrayPopupPaddingHorizontal; | 41 extern const int kTrayPopupPaddingHorizontal; |
44 extern const int kTrayPopupPaddingBetweenItems; | 42 extern const int kTrayPopupPaddingBetweenItems; |
45 extern const int kTrayPopupTextSpacingVertical; | 43 extern const int kTrayPopupTextSpacingVertical; |
46 extern const int kTrayPopupUserCardVerticalPadding; | 44 extern const int kTrayPopupUserCardVerticalPadding; |
47 | 45 |
48 const int kTrayPopupItemHeight = 46; | 46 extern const int kTrayPopupItemHeight; |
49 extern const int kTrayPopupDetailsIconWidth; | 47 extern const int kTrayPopupDetailsIconWidth; |
50 extern const int kTrayPopupDetailsLabelExtraLeftMargin; | 48 extern const int kTrayPopupDetailsLabelExtraLeftMargin; |
51 extern const SkColor kTrayPopupHoverBackgroundColor; | 49 extern const SkColor kTrayPopupHoverBackgroundColor; |
52 extern const int kTrayPopupScrollSeparatorHeight; | 50 extern const int kTrayPopupScrollSeparatorHeight; |
53 extern const int kTrayRoundedBorderRadius; | 51 extern const int kTrayRoundedBorderRadius; |
54 extern const int kTrayBarButtonWidth; | |
55 | 52 |
56 extern const SkColor kBackgroundColor; | 53 extern const SkColor kBackgroundColor; |
57 extern const SkColor kHoverBackgroundColor; | 54 extern const SkColor kHoverBackgroundColor; |
58 extern const SkColor kPublicAccountBackgroundColor; | 55 extern const SkColor kPublicAccountBackgroundColor; |
59 extern const SkColor kPublicAccountUserCardTextColor; | 56 extern const SkColor kPublicAccountUserCardTextColor; |
60 extern const SkColor kPublicAccountUserCardNameColor; | 57 extern const SkColor kPublicAccountUserCardNameColor; |
61 | 58 |
62 extern const SkColor kHeaderBackgroundColor; | 59 extern const SkColor kHeaderBackgroundColor; |
63 | 60 |
64 extern const SkColor kBorderDarkColor; | 61 extern const SkColor kBorderDarkColor; |
65 extern const SkColor kBorderLightColor; | 62 extern const SkColor kBorderLightColor; |
66 extern const SkColor kButtonStrokeColor; | 63 extern const SkColor kButtonStrokeColor; |
67 | 64 |
68 extern const SkColor kHeaderTextColorNormal; | 65 extern const SkColor kHeaderTextColorNormal; |
69 extern const SkColor kHeaderTextColorHover; | 66 extern const SkColor kHeaderTextColorHover; |
70 | 67 |
71 extern const int kTrayPopupMinWidth; | 68 extern const int kTrayPopupMinWidth; |
72 extern const int kTrayPopupMaxWidth; | 69 extern const int kTrayPopupMaxWidth; |
73 extern const int kNotificationIconWidth; | 70 extern const int kNotificationIconWidth; |
74 extern const int kNotificationButtonWidth; | 71 extern const int kNotificationButtonWidth; |
75 extern const int kTrayNotificationContentsWidth; | 72 extern const int kTrayNotificationContentsWidth; |
76 | 73 |
77 extern const int kTrayAvatarCornerRadius; | |
78 extern const int kTrayAvatarSize; | |
79 | |
80 extern const int kMessageCenterBubblePadding; | 74 extern const int kMessageCenterBubblePadding; |
81 extern const int kShelfItemHeight; | |
82 | |
83 // TODO(tdanderson): Update all button background to 32 by 32 in Chrome OS MD. | |
84 // All tray background are sized 32 by 32 in Chrome OS MD. | |
85 extern const int kShelfItemSizeMD; | |
86 | 75 |
87 enum TrayConstant { | 76 enum TrayConstant { |
| 77 // A legacy height value used in non-MD calculations for applying additional |
| 78 // borders on tray items. |
| 79 TRAY_ITEM_HEIGHT_LEGACY, |
| 80 |
88 // Padding between items in the status tray area. | 81 // Padding between items in the status tray area. |
89 TRAY_SPACING, | 82 TRAY_SPACING, |
90 | 83 |
91 // Padding between the edge of shelf and the item in status tray area. | 84 // Padding between the edge of shelf and the item in status tray area. |
92 TRAY_PADDING_FROM_EDGE_OF_SHELF, | 85 TRAY_PADDING_FROM_EDGE_OF_SHELF, |
| 86 |
| 87 // The width and height of the virtual keyboard button in the status tray |
| 88 // area. For non-MD, adjustments are made to the button dimensions based on |
| 89 // the shelf orientation, so this constant does not specify the true |
| 90 // user-visible button bounds. |
| 91 VIRTUAL_KEYBOARD_BUTTON_SIZE, |
93 }; | 92 }; |
94 | 93 |
95 int GetTrayConstant(TrayConstant constant); | 94 int GetTrayConstant(TrayConstant constant); |
96 | 95 |
97 namespace test { | 96 namespace test { |
98 const int kSettingsTrayItemViewId = 10000; | 97 const int kSettingsTrayItemViewId = 10000; |
99 const int kAccessibilityTrayItemViewId = 10001; | 98 const int kAccessibilityTrayItemViewId = 10001; |
100 } // namespace test | 99 } // namespace test |
101 | 100 |
102 } // namespace ash | 101 } // namespace ash |
103 | 102 |
104 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | 103 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ |
OLD | NEW |