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

Side by Side Diff: ash/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: Created 4 years, 7 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
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_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_CONSTANTS_H_
6 #define ASH_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 6 #define ASH_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 kEmptyBoarderPadding;
bruthig 2016/05/25 20:24:53 sp: Boarder->Border
yiyix 2016/06/02 03:54:54 Done.
26 enum ShelfStatusAreaInset {
27 // Padding between the edge of the shelf and the status tray area.
28 PADDING_FROM_EDGE_OF_SHELF,
29
30 // Padding between icons in the status tray area.
31 TRAY_SPACING,
32
33 // Padding between the edge of shelf and the overview button.
34 PADDING_FROM_EDGE_TO_OVERVIEW_BUTTON,
bruthig 2016/05/25 20:24:53 Remove this value and use PADDING_FROM_EDGE_OF_SHE
yiyix 2016/06/02 03:54:54 Done.
35 };
36
26 extern const int kTrayBubbleAnchorTopInsetBottomAnchor; 37 extern const int kTrayBubbleAnchorTopInsetBottomAnchor;
27 38
28 extern const int kTrayImageItemHorizontalPaddingBottomAlignment; 39 extern const int kTrayImageItemHorizontalPaddingBottomAlignment;
29 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment; 40 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment;
30 extern const int kTrayImageItemVerticalPaddingVerticalAlignment; 41 extern const int kTrayImageItemVerticalPaddingVerticalAlignment;
31 42
32 ASH_EXPORT extern const int kTrayItemSize; 43 ASH_EXPORT extern const int kTrayItemSize;
33 44
34 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; 45 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment;
35 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; 46 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 80
70 extern const int kTrayPopupMinWidth; 81 extern const int kTrayPopupMinWidth;
71 extern const int kTrayPopupMaxWidth; 82 extern const int kTrayPopupMaxWidth;
72 extern const int kNotificationIconWidth; 83 extern const int kNotificationIconWidth;
73 extern const int kNotificationButtonWidth; 84 extern const int kNotificationButtonWidth;
74 extern const int kTrayNotificationContentsWidth; 85 extern const int kTrayNotificationContentsWidth;
75 86
76 extern const int kTrayAvatarCornerRadius; 87 extern const int kTrayAvatarCornerRadius;
77 extern const int kTrayAvatarSize; 88 extern const int kTrayAvatarSize;
78 89
79 extern const int kTraySpacing; 90 extern const int kMessageCenterBubblePadding;
80 extern const int kShelfItemHeight; 91 extern const int kShelfItemHeight;
81 92
93 int GetShelfStatusAreaInset(ShelfStatusAreaInset constant);
94
82 namespace test { 95 namespace test {
83 const int kSettingsTrayItemViewId = 10000; 96 const int kSettingsTrayItemViewId = 10000;
84 const int kAccessibilityTrayItemViewId = 10001; 97 const int kAccessibilityTrayItemViewId = 10001;
85 } // namespace test 98 } // namespace test
86 99
87 } // namespace ash 100 } // namespace ash
88 101
89 #endif // ASH_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 102 #endif // ASH_SYSTEM_TRAY_TRAY_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698