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 #include "ash/system/tray/tray_constants.h" | 5 #include "ash/system/tray/tray_constants.h" |
6 | 6 |
7 #include "third_party/skia/include/core/SkColor.h" | 7 #include "third_party/skia/include/core/SkColor.h" |
8 | 8 |
9 namespace ash { | 9 namespace ash { |
10 | 10 |
11 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7; | 11 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7; |
12 const int kPaddingFromBottomOfScreenBottomAlignment = 7; | 12 const int kPaddingFromBottomOfScreenBottomAlignment = 7; |
13 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8; | 13 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8; |
14 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9; | 14 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9; |
15 const int kPaddingFromBottomOfScreenVerticalAlignment = 10; | 15 const int kPaddingFromBottomOfScreenVerticalAlignment = 10; |
16 | 16 |
17 const int kTrayImageItemHorizontalPaddingBottomAlignment = 1; | 17 const int kTrayImageItemHorizontalPaddingBottomAlignment = 1; |
18 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1; | 18 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1; |
19 const int kTrayImageItemVerticalPaddingVerticalAlignment = 1; | 19 const int kTrayImageItemVerticalPaddingVerticalAlignment = 1; |
20 | 20 |
21 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7; | 21 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7; |
22 const int kTrayLabelItemVerticalPaddingVeriticalAlignment = 4; | 22 const int kTrayLabelItemVerticalPaddingVeriticalAlignment = 4; |
23 | 23 |
| 24 const int kTrayMenuBottomRowPadding = 5; |
| 25 const int kTrayMenuBottomRowPaddingBetweenItems = -1; |
| 26 |
24 const int kTrayPopupAutoCloseDelayInSeconds = 2; | 27 const int kTrayPopupAutoCloseDelayInSeconds = 2; |
25 const int kTrayPopupAutoCloseDelayForTextInSeconds = 5; | 28 const int kTrayPopupAutoCloseDelayForTextInSeconds = 5; |
26 const int kTrayPopupPaddingHorizontal = 18; | 29 const int kTrayPopupPaddingHorizontal = 18; |
27 const int kTrayPopupPaddingBetweenItems = 10; | 30 const int kTrayPopupPaddingBetweenItems = 10; |
28 const int kTrayPopupTextSpacingVertical = 4; | 31 const int kTrayPopupTextSpacingVertical = 4; |
29 | 32 |
30 const int kTrayPopupItemHeight = 48; | 33 const int kTrayPopupItemHeight = 48; |
31 const int kTrayPopupDetailsIconWidth = 25; | 34 const int kTrayPopupDetailsIconWidth = 25; |
32 const int kTrayRoundedBorderRadius = 2; | 35 const int kTrayRoundedBorderRadius = 2; |
33 const int kTrayBarButtonWidth = 39; | 36 const int kTrayBarButtonWidth = 39; |
(...skipping 11 matching lines...) Expand all Loading... |
45 | 48 |
46 const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0); | 49 const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0); |
47 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0); | 50 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0); |
48 | 51 |
49 const int kTrayPopupWidth = 300; | 52 const int kTrayPopupWidth = 300; |
50 const int kNotificationIconWidth = 40; | 53 const int kNotificationIconWidth = 40; |
51 const int kTrayNotificationContentsWidth = | 54 const int kTrayNotificationContentsWidth = |
52 kTrayPopupWidth - kNotificationIconWidth*2 - kTrayPopupPaddingHorizontal*2; | 55 kTrayPopupWidth - kNotificationIconWidth*2 - kTrayPopupPaddingHorizontal*2; |
53 | 56 |
54 } // namespace ash | 57 } // namespace ash |
OLD | NEW |