• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #ifndef ASH_SYSTEM_TRAY_TRAY_CONSTANTS_H_
6 #define ASH_SYSTEM_TRAY_TRAY_CONSTANTS_H_
7 
8 typedef unsigned int SkColor;
9 
10 namespace ash {
11 
12 extern const int kPaddingFromRightEdgeOfScreenBottomAlignment;
13 extern const int kPaddingFromBottomOfScreenBottomAlignment;
14 extern const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment;
15 extern const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment;
16 extern const int kPaddingFromBottomOfScreenVerticalAlignment;
17 
18 extern const int kAlternateLayoutBubblePaddingHorizontalBottom;
19 extern const int kAlternateLayoutBubblePaddingHorizontalSide;
20 extern const int kAlternateLayoutBubblePaddingVerticalBottom;
21 extern const int kAlternateLayoutBubblePaddingVerticalSide;
22 
23 extern const int kPaddingFromEdgeOfShelf;
24 extern const int kTrayBubbleAnchorTopInsetBottomAnchor;
25 
26 extern const int kTrayImageItemHorizontalPaddingBottomAlignment;
27 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment;
28 extern const int kTrayImageItemVerticalPaddingVerticalAlignment;
29 
30 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment;
31 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment;
32 
33 extern const int kTrayMenuBottomRowPadding;
34 extern const int kTrayMenuBottomRowPaddingBetweenItems;
35 
36 extern const int kTrayPopupAutoCloseDelayInSeconds;
37 extern const int kTrayPopupAutoCloseDelayForTextInSeconds;
38 extern const int kTrayPopupPaddingHorizontal;
39 extern const int kTrayPopupPaddingBetweenItems;
40 extern const int kTrayPopupTextSpacingVertical;
41 
42 extern const int kTrayPopupItemHeight;
43 extern const int kTrayPopupDetailsIconWidth;
44 extern const int kTrayPopupDetailsLabelExtraLeftMargin;
45 extern const int kTrayPopupScrollSeparatorHeight;
46 extern const int kTrayRoundedBorderRadius;
47 extern const int kTrayBarButtonWidth;
48 
49 extern const SkColor kBackgroundColor;
50 extern const SkColor kHoverBackgroundColor;
51 extern const SkColor kPublicAccountBackgroundColor;
52 extern const SkColor kPublicAccountUserCardTextColor;
53 extern const SkColor kPublicAccountUserCardNameColor;
54 
55 extern const SkColor kHeaderBackgroundColor;
56 
57 extern const SkColor kBorderDarkColor;
58 extern const SkColor kBorderLightColor;
59 extern const SkColor kButtonStrokeColor;
60 
61 extern const SkColor kHeaderTextColorNormal;
62 extern const SkColor kHeaderTextColorHover;
63 
64 extern const int kTrayPopupMinWidth;
65 extern const int kTrayPopupMaxWidth;
66 extern const int kNotificationIconWidth;
67 extern const int kNotificationButtonWidth;
68 extern const int kTrayNotificationContentsWidth;
69 
70 // Returns kTraySpacing or kAlternateTraySpacing as applicable
71 // (Determined by ash::switches::UseAlternateShelfLayout).
72 int GetTraySpacing();
73 
74 // Returns kShelfItemHeight or kAlternateShelfItemHeight as applicable
75 // (Determined by ash::switches::UseAlternateShelfLayout).
76 int GetShelfItemHeight();
77 
78 }  // namespace ash
79 
80 #endif  // ASH_SYSTEM_TRAY_TRAY_CONSTANTS_H_
81