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 "ash/ash_switches.h" |
7 #include "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
8 | 9 |
9 namespace ash { | 10 namespace ash { |
10 | 11 |
11 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7; | 12 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7; |
12 const int kPaddingFromBottomOfScreenBottomAlignment = 7; | 13 const int kPaddingFromBottomOfScreenBottomAlignment = 7; |
13 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8; | 14 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8; |
14 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9; | 15 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9; |
15 const int kPaddingFromBottomOfScreenVerticalAlignment = 10; | 16 const int kPaddingFromBottomOfScreenVerticalAlignment = 10; |
16 | 17 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0); | 59 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0); |
59 | 60 |
60 const int kTrayPopupMinWidth = 300; | 61 const int kTrayPopupMinWidth = 300; |
61 const int kTrayPopupMaxWidth = 500; | 62 const int kTrayPopupMaxWidth = 500; |
62 const int kNotificationIconWidth = 40; | 63 const int kNotificationIconWidth = 40; |
63 const int kNotificationButtonWidth = 32; | 64 const int kNotificationButtonWidth = 32; |
64 const int kTrayNotificationContentsWidth = kTrayPopupMinWidth - | 65 const int kTrayNotificationContentsWidth = kTrayPopupMinWidth - |
65 (kNotificationIconWidth + kNotificationButtonWidth + | 66 (kNotificationIconWidth + kNotificationButtonWidth + |
66 (kTrayPopupPaddingHorizontal / 2) * 3); | 67 (kTrayPopupPaddingHorizontal / 2) * 3); |
67 const int kTraySpacing = 8; | 68 const int kTraySpacing = 8; |
| 69 const int kAlternateTraySpacing = 4; |
| 70 |
| 71 // Returns kTraySpacing or kAlternateTraySpacing as applicable |
| 72 // (Determined by ash::switches::UseAlternateShelfLayout). |
| 73 int GetTraySpacing() { |
| 74 return ash::switches::UseAlternateShelfLayout() ? |
| 75 kAlternateTraySpacing : kTraySpacing; |
| 76 } |
68 | 77 |
69 } // namespace ash | 78 } // namespace ash |
OLD | NEW |