Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: ash/common/system/tray/tray_constants.h

Issue 1998933002: Update shelf spacing in Chrome OS according to the MD specs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/shelf/shelf_constants.cc ('k') | ash/common/system/tray/tray_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 kPaddingFromEdgeOfShelf; 25 extern const int kAdjustBackgroundPadding;
26
26 extern const int kTrayBubbleAnchorTopInsetBottomAnchor; 27 extern const int kTrayBubbleAnchorTopInsetBottomAnchor;
27 28
28 extern const int kTrayImageItemHorizontalPaddingBottomAlignment; 29 extern const int kTrayImageItemHorizontalPaddingBottomAlignment;
29 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment; 30 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment;
30 extern const int kTrayImageItemVerticalPaddingVerticalAlignment; 31 extern const int kTrayImageItemVerticalPaddingVerticalAlignment;
31 32
32 ASH_EXPORT extern const int kTrayItemSize; 33 ASH_EXPORT extern const int kTrayItemSize;
33 34
34 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; 35 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment;
35 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; 36 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 70
70 extern const int kTrayPopupMinWidth; 71 extern const int kTrayPopupMinWidth;
71 extern const int kTrayPopupMaxWidth; 72 extern const int kTrayPopupMaxWidth;
72 extern const int kNotificationIconWidth; 73 extern const int kNotificationIconWidth;
73 extern const int kNotificationButtonWidth; 74 extern const int kNotificationButtonWidth;
74 extern const int kTrayNotificationContentsWidth; 75 extern const int kTrayNotificationContentsWidth;
75 76
76 extern const int kTrayAvatarCornerRadius; 77 extern const int kTrayAvatarCornerRadius;
77 extern const int kTrayAvatarSize; 78 extern const int kTrayAvatarSize;
78 79
79 extern const int kTraySpacing; 80 extern const int kMessageCenterBubblePadding;
80 extern const int kShelfItemHeight; 81 extern const int kShelfItemHeight;
81 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
87 enum TrayConstant {
88 // Padding between items in the status tray area.
89 TRAY_SPACING,
90
91 // Padding between the edge of shelf and the item in status tray area.
92 TRAY_PADDING_FROM_EDGE_OF_SHELF,
93 };
94
95 int GetTrayConstant(TrayConstant constant);
96
82 namespace test { 97 namespace test {
83 const int kSettingsTrayItemViewId = 10000; 98 const int kSettingsTrayItemViewId = 10000;
84 const int kAccessibilityTrayItemViewId = 10001; 99 const int kAccessibilityTrayItemViewId = 10001;
85 } // namespace test 100 } // namespace test
86 101
87 } // namespace ash 102 } // namespace ash
88 103
89 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 104 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/shelf_constants.cc ('k') | ash/common/system/tray/tray_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698