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