tray_constants.h revision d0247b1b59f9c528cb6df88b4f2b9afaf80d181e
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 3// found in the LICENSE file. 4 5#ifndef ASH_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 6#define ASH_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 7 8typedef unsigned int SkColor; 9 10namespace ash { 11 12extern const int kPaddingFromRightEdgeOfScreenBottomAlignment; 13extern const int kPaddingFromBottomOfScreenBottomAlignment; 14extern const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment; 15extern const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment; 16extern const int kPaddingFromBottomOfScreenVerticalAlignment; 17 18extern const int kAlternateLayoutBubblePaddingHorizontalBottom; 19extern const int kAlternateLayoutBubblePaddingHorizontalSide; 20extern const int kAlternateLayoutBubblePaddingVerticalBottom; 21extern const int kAlternateLayoutBubblePaddingVerticalSide; 22 23extern const int kPaddingFromEdgeOfShelf; 24extern const int kTrayBubbleAnchorTopInsetBottomAnchor; 25 26extern const int kTrayImageItemHorizontalPaddingBottomAlignment; 27extern const int kTrayImageItemHorizontalPaddingVerticalAlignment; 28extern const int kTrayImageItemVerticalPaddingVerticalAlignment; 29 30extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; 31extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; 32 33extern const int kTrayMenuBottomRowPadding; 34extern const int kTrayMenuBottomRowPaddingBetweenItems; 35 36extern const int kTrayPopupAutoCloseDelayInSeconds; 37extern const int kTrayPopupAutoCloseDelayForTextInSeconds; 38extern const int kTrayPopupPaddingHorizontal; 39extern const int kTrayPopupPaddingBetweenItems; 40extern const int kTrayPopupTextSpacingVertical; 41 42extern const int kTrayPopupItemHeight; 43extern const int kTrayPopupDetailsIconWidth; 44extern const int kTrayPopupDetailsLabelExtraLeftMargin; 45extern const int kTrayPopupScrollSeparatorHeight; 46extern const int kTrayRoundedBorderRadius; 47extern const int kTrayBarButtonWidth; 48 49extern const SkColor kBackgroundColor; 50extern const SkColor kHoverBackgroundColor; 51extern const SkColor kPublicAccountBackgroundColor; 52extern const SkColor kPublicAccountUserCardTextColor; 53extern const SkColor kPublicAccountUserCardNameColor; 54 55extern const SkColor kHeaderBackgroundColor; 56 57extern const SkColor kBorderDarkColor; 58extern const SkColor kBorderLightColor; 59extern const SkColor kButtonStrokeColor; 60 61extern const SkColor kHeaderTextColorNormal; 62extern const SkColor kHeaderTextColorHover; 63 64extern const int kTrayPopupMinWidth; 65extern const int kTrayPopupMaxWidth; 66extern const int kNotificationIconWidth; 67extern const int kNotificationButtonWidth; 68extern const int kTrayNotificationContentsWidth; 69 70// Returns kTraySpacing or kAlternateTraySpacing as applicable 71// (Determined by ash::switches::UseAlternateShelfLayout). 72int GetTraySpacing(); 73 74// Returns kShelfItemHeight or kAlternateShelfItemHeight as applicable 75// (Determined by ash::switches::UseAlternateShelfLayout). 76int GetShelfItemHeight(); 77 78} // namespace ash 79 80#endif // ASH_SYSTEM_TRAY_TRAY_CONSTANTS_H_ 81