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

Side by Side Diff: ash/system/tray/tray_constants.cc

Issue 2823133002: Clean up some ash constants. (Closed)
Patch Set: ditto Created 3 years, 8 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/system/tray/tray_constants.h ('k') | ash/system/tray/tray_utils.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 #include "ash/system/tray/tray_constants.h" 5 #include "ash/system/tray/tray_constants.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
9 #include "ui/gfx/color_palette.h" 9 #include "ui/gfx/color_palette.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7; 13 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7;
14 const int kPaddingFromBottomOfScreenBottomAlignment = 7; 14 const int kPaddingFromBottomOfScreenBottomAlignment = 7;
15 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8; 15 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8;
16 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9; 16 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9;
17 const int kPaddingFromBottomOfScreenVerticalAlignment = 10; 17 const int kPaddingFromBottomOfScreenVerticalAlignment = 10;
18 18
19 // Padding used to position the system menu relative to the status area. 19 // Padding used to position the system menu relative to the status area.
20 const int kBubblePaddingHorizontalBottom = 6; 20 const int kBubblePaddingHorizontalBottom = 6;
21 const int kBubblePaddingHorizontalSide = 10; 21 const int kBubblePaddingHorizontalSide = 10;
22 const int kBubblePaddingVerticalBottom = 3; 22 const int kBubblePaddingVerticalBottom = 3;
23 const int kBubblePaddingVerticalSide = 15; 23 const int kBubblePaddingVerticalSide = 15;
24 24
25 const int kTrayTextFontSizeIncrease = 2;
26
25 // Top inset of system tray bubble for bottom anchor alignment. 27 // Top inset of system tray bubble for bottom anchor alignment.
26 const int kTrayBubbleAnchorTopInsetBottomAnchor = 3; 28 const int kTrayBubbleAnchorTopInsetBottomAnchor = 3;
27 29
28 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1; 30 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1;
29 31
30 // Size of tray items on the primary axis. 32 // Size of tray items on the primary axis.
31 const int kTrayItemSize = 32; 33 const int kTrayItemSize = 32;
32 34
33 const int kTrayImageItemPadding = 3; 35 const int kTrayImageItemPadding = 3;
34 36
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 101
100 const SkColor kTrayPopupInkDropBaseColor = SK_ColorBLACK; 102 const SkColor kTrayPopupInkDropBaseColor = SK_ColorBLACK;
101 const float kTrayPopupInkDropRippleOpacity = 0.06f; 103 const float kTrayPopupInkDropRippleOpacity = 0.06f;
102 const float kTrayPopupInkDropHighlightOpacity = 0.08f; 104 const float kTrayPopupInkDropHighlightOpacity = 0.08f;
103 const int kTrayPopupInkDropInset = 4; 105 const int kTrayPopupInkDropInset = 4;
104 const int kTrayPopupInkDropCornerRadius = 2; 106 const int kTrayPopupInkDropCornerRadius = 2;
105 107
106 const int kTrayPopupSystemInfoRowHeight = 40; 108 const int kTrayPopupSystemInfoRowHeight = 40;
107 109
108 } // namespace ash 110 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/tray_constants.h ('k') | ash/system/tray/tray_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698