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

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

Issue 10384217: Add left/right layout support for uber tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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 "third_party/skia/include/core/SkColor.h" 7 #include "third_party/skia/include/core/SkColor.h"
8 8
9 namespace ash { 9 namespace ash {
10 10
11 const int kPaddingFromRightEdgeOfScreen = 15; 11 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 15;
12 const int kPaddingFromBottomOfScreen = 10; 12 const int kPaddingFromBottomOfScreenBottomAlignment = 10;
13 const int kPaddingFromLeftEdgeOfScreenLeftAlignment = 13;
14 const int kPaddingFromRightEdgeOfScreenRightAlignment = 2;
15 const int kPaddingFromBottomOfScreenVerticalAlignment = 9;
13 16
14 const int kTrayPopupAutoCloseDelayInSeconds = 2; 17 const int kTrayPopupAutoCloseDelayInSeconds = 2;
15 const int kTrayPopupAutoCloseDelayForTextInSeconds = 5; 18 const int kTrayPopupAutoCloseDelayForTextInSeconds = 5;
16 const int kTrayPopupPaddingHorizontal = 18; 19 const int kTrayPopupPaddingHorizontal = 18;
17 const int kTrayPopupPaddingBetweenItems = 10; 20 const int kTrayPopupPaddingBetweenItems = 10;
18 const int kTrayPopupTextSpacingVertical = 4; 21 const int kTrayPopupTextSpacingVertical = 4;
19 22
20 const int kTrayPopupItemHeight = 48; 23 const int kTrayPopupItemHeight = 48;
21 const int kTrayPopupDetailsIconWidth = 27; 24 const int kTrayPopupDetailsIconWidth = 27;
22 const int kTrayRoundedBorderRadius = 2; 25 const int kTrayRoundedBorderRadius = 2;
23 26
24 const SkColor kBackgroundColor = SkColorSetRGB(0xfe, 0xfe, 0xfe); 27 const SkColor kBackgroundColor = SkColorSetRGB(0xfe, 0xfe, 0xfe);
25 const SkColor kHoverBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); 28 const SkColor kHoverBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5);
26 29
27 const SkColor kHeaderBackgroundColorLight = SkColorSetRGB(0xf1, 0xf1, 0xf1); 30 const SkColor kHeaderBackgroundColorLight = SkColorSetRGB(0xf1, 0xf1, 0xf1);
28 const SkColor kHeaderBackgroundColorDark = SkColorSetRGB(0xe7, 0xe7, 0xe7); 31 const SkColor kHeaderBackgroundColorDark = SkColorSetRGB(0xe7, 0xe7, 0xe7);
29 32
30 const SkColor kBorderDarkColor = SkColorSetRGB(0xbb, 0xbb, 0xbb); 33 const SkColor kBorderDarkColor = SkColorSetRGB(0xbb, 0xbb, 0xbb);
31 const SkColor kBorderLightColor = SkColorSetRGB(0xeb, 0xeb, 0xeb); 34 const SkColor kBorderLightColor = SkColorSetRGB(0xeb, 0xeb, 0xeb);
32 const SkColor kButtonStrokeColor = SkColorSetRGB(0xdd, 0xdd, 0xdd); 35 const SkColor kButtonStrokeColor = SkColorSetRGB(0xdd, 0xdd, 0xdd);
33 36
34 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); 37 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250);
35 38
36 const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0); 39 const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0);
37 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0); 40 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0);
38 41
39 const int kTrayPopupWidth = 300; 42 const int kTrayPopupWidth = 300;
40 43
41 } // namespace ash 44 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698