blob: 0e73e279be2db3a594e3bdb299de8a16a4065d64 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_
#define ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_
#include "ash/ash_export.h"
typedef unsigned int SkColor;
namespace ash {
extern const int kPaddingFromRightEdgeOfScreenBottomAlignment;
extern const int kPaddingFromBottomOfScreenBottomAlignment;
extern const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment;
extern const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment;
extern const int kPaddingFromBottomOfScreenVerticalAlignment;
extern const int kBubblePaddingHorizontalBottom;
extern const int kBubblePaddingHorizontalSide;
extern const int kBubblePaddingVerticalBottom;
extern const int kBubblePaddingVerticalSide;
extern const int kTrayBubbleAnchorTopInsetBottomAnchor;
extern const int kTrayImageItemHorizontalPaddingVerticalAlignment;
ASH_EXPORT extern const int kTrayItemSize;
extern const int kTrayLabelItemHorizontalPaddingBottomAlignment;
extern const int kTrayLabelItemVerticalPaddingVerticalAlignment;
extern const int kTrayMenuBottomRowPadding;
extern const int kTrayMenuBottomRowPaddingBetweenItems;
extern const int kTrayPopupAutoCloseDelayInSeconds;
extern const int kTrayPopupAutoCloseDelayForTextInSeconds;
extern const int kTrayPopupPaddingHorizontal;
extern const int kTrayPopupPaddingBetweenItems;
// Used for buttons that have borders.
extern const int kTrayPopupButtonEndMargin;
extern const int kTrayPopupUserCardVerticalPadding;
// The padding used on the left and right of labels. This applies to all labels
// in the system menu.
extern const int kTrayPopupLabelHorizontalPadding;
// Padding used to adjust the slider position in volume row and brightness
// row horizontally.
extern const int kTrayPopupSliderPaddingMD;
// Padding used on right side of labels to keep minimum distance to the next
// item. This applies to all labels in the system menu.
extern const int kTrayPopupLabelRightPadding;
extern const int kTrayPopupDetailsIconWidth;
extern const int kTrayPopupDetailsLabelExtraLeftMargin;
extern const SkColor kTrayPopupHoverBackgroundColor;
extern const int kTrayPopupScrollSeparatorHeight;
extern const int kTrayRoundedBorderRadius;
// The padding used on the left and right of labels.
extern const int kTrayPopupLabelHorizontalPadding;
extern const SkColor kBackgroundColor;
extern const SkColor kHoverBackgroundColor;
extern const SkColor kPublicAccountBackgroundColor;
extern const SkColor kPublicAccountUserCardTextColor;
extern const SkColor kPublicAccountUserCardNameColor;
extern const SkColor kHeaderBackgroundColor;
extern const SkColor kBorderDarkColor;
extern const SkColor kBorderLightColor;
extern const SkColor kButtonStrokeColor;
extern const SkColor kHeaderTextColorNormal;
extern const SkColor kHeaderTextColorHover;
extern const int kTrayPopupMinWidth;
extern const int kTrayPopupMaxWidth;
extern const int kNotificationIconWidth;
extern const int kNotificationButtonWidth;
extern const int kTrayNotificationContentsWidth;
// Extra padding used to adjust hitting region around tray items.
extern const int kHitRegionPadding;
// Color and width of a line used to separate tray items in the shelf.
extern const SkColor kSeparatorColor;
extern const int kSeparatorWidth;
// The color and height of the horizontal separator used in the material design
// system menu (i.e., the vertical line used to separate elements horizontally).
extern const SkColor kHorizontalSeparatorColor;
extern const int kHorizontalSeparatorHeight;
// The size and foreground color of the icons appearing in the material design
// system tray.
extern const int kTrayIconSize;
extern const SkColor kTrayIconColor;
// The total visual padding at the start and end of the icon/label section
// of the tray.
extern const int kTrayEdgePadding;
// The size and foreground color of the icons appearing in the material design
// system menu.
extern const int kMenuIconSize;
extern const SkColor kMenuIconColor;
extern const SkColor kMenuIconColorDisabled;
// The size of buttons in the system menu.
extern const int kMenuButtonSize;
// The vertical padding for the system menu separator.
extern const int kMenuSeparatorVerticalPadding;
// The horizontal padding for the system menu separator.
extern const int kMenuExtraMarginFromLeftEdge;
// The visual padding to the left of icons in the system menu.
extern const int kMenuEdgeEffectivePadding;
// The base color used for all ink drops in the system menu.
extern const SkColor kTrayPopupInkDropBaseColor;
// The opacity of the ink drop ripples for all ink drops in the system menu.
extern const float kTrayPopupInkDropRippleOpacity;
// The opacity of the ink drop ripples for all ink highlights in the system
// menu.
extern const float kTrayPopupInkDropHighlightOpacity;
// The inset applied to clickable surfaces in the system menu that do not have
// the ink drop filling the entire bounds.
extern const int kTrayPopupInkDropInset;
enum TrayConstant {
// A legacy height value used in non-MD calculations for applying additional
// borders on tray items.
TRAY_ITEM_HEIGHT_LEGACY,
// Padding between items in the status tray area.
TRAY_SPACING,
// Padding between the edge of shelf and the item in status tray area.
TRAY_PADDING_FROM_EDGE_OF_SHELF,
// The minimum height of the rows in the system tray menu.
TRAY_POPUP_ITEM_MIN_HEIGHT,
// The maximum height of the rows in the system tray menu.
TRAY_POPUP_ITEM_MAX_HEIGHT,
// The width used for the main image of the row. This applies to all rows
// in the system menu that have a main image (e.g. default and detailed).
TRAY_POPUP_ITEM_MAIN_IMAGE_CONTAINER_WIDTH,
// The width used for the images used in the 'more' region of default rows.
TRAY_POPUP_ITEM_MORE_IMAGE_SIZE,
// The horizontal inset in the 'more' region of default rows.
TRAY_POPUP_ITEM_MORE_REGION_HORIZONTAL_INSET,
// The left inset for all tray system menu rows.
TRAY_POPUP_ITEM_LEFT_INSET,
// The right inset for all tray system menu rows.
TRAY_POPUP_ITEM_RIGHT_INSET,
// The minimum default width for the left container of the system menu rows.
TRAY_POPUP_ITEM_MIN_START_WIDTH,
// The minimum default width for the right container of the system menu rows.
TRAY_POPUP_ITEM_MIN_END_WIDTH,
// The width and height of the virtual keyboard button in the status tray
// area. For non-MD, adjustments are made to the button dimensions based on
// the shelf orientation, so this constant does not specify the true
// user-visible button bounds.
VIRTUAL_KEYBOARD_BUTTON_SIZE,
// The icon size of opt-in IME menu tray.
TRAY_IME_MENU_ICON,
// Extra padding used beside a single icon in the tray area of the shelf.
TRAY_IMAGE_ITEM_PADDING,
};
int GetTrayConstant(TrayConstant constant);
namespace test {
const int kSettingsTrayItemViewId = 10000;
const int kAccessibilityTrayItemViewId = 10001;
} // namespace test
} // namespace ash
#endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_