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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_constants.h
diff --git a/ash/common/system/tray/tray_constants.h b/ash/common/system/tray/tray_constants.h
index f6c9c16e1a61bdb604ee67dad85f59e69b9da496..feac0cac065a65d15f568a48c9d973488d1975be 100644
--- a/ash/common/system/tray/tray_constants.h
+++ b/ash/common/system/tray/tray_constants.h
@@ -22,7 +22,8 @@ extern const int kBubblePaddingHorizontalSide;
extern const int kBubblePaddingVerticalBottom;
extern const int kBubblePaddingVerticalSide;
-extern const int kPaddingFromEdgeOfShelf;
+extern const int kAdjustBackgroundPadding;
+
extern const int kTrayBubbleAnchorTopInsetBottomAnchor;
extern const int kTrayImageItemHorizontalPaddingBottomAlignment;
@@ -76,9 +77,23 @@ extern const int kTrayNotificationContentsWidth;
extern const int kTrayAvatarCornerRadius;
extern const int kTrayAvatarSize;
-extern const int kTraySpacing;
+extern const int kMessageCenterBubblePadding;
extern const int kShelfItemHeight;
+// TODO(tdanderson): Update all button background to 32 by 32 in Chrome OS MD.
+// All tray background are sized 32 by 32 in Chrome OS MD.
+extern const int kShelfItemSizeMD;
+
+enum TrayConstant {
+ // Padding between items in the status tray area.
+ TRAY_SPACING,
+
+ // Padding between the edge of shelf and the item in status tray area.
+ TRAY_PADDING_FROM_EDGE_OF_SHELF,
+};
+
+int GetTrayConstant(TrayConstant constant);
+
namespace test {
const int kSettingsTrayItemViewId = 10000;
const int kAccessibilityTrayItemViewId = 10001;
« 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