forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
message_center_constants.h
68 lines (51 loc) · 2.88 KB
/
message_center_constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// 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 UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_
#define UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_
#include "base/basictypes.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/message_center/message_center_export.h"
namespace message_center {
// Exported values /////////////////////////////////////////////////////////////
// Square image sizes in pixels.
MESSAGE_CENTER_EXPORT extern const int kNotificationButtonIconSize;
MESSAGE_CENTER_EXPORT extern const int kNotificationIconSize;
MESSAGE_CENTER_EXPORT extern const int kNotificationPreferredImageSize;
MESSAGE_CENTER_EXPORT extern const int kSettingsIconSize;
// Limits.
MESSAGE_CENTER_EXPORT extern const size_t kMaxVisiblePopupNotifications;
MESSAGE_CENTER_EXPORT extern const size_t kMaxVisibleMessageCenterNotifications;
// Within a notification ///////////////////////////////////////////////////////
// Pixel dimensions (H = horizontal, V = vertical).
extern const int kControlButtonSize; // Square size of close & expand buttons.
extern const int kNotificationWidth; // H size of the whole card.
extern const int kIconToTextPadding; // H space between icon & title/message.
extern const int kTextTopPadding; // V space between text elements.
// Text sizes.
extern const int kTitleFontSize; // For title only.
extern const int kTitleLineHeight; // In pixels.
extern const int kMessageFontSize; // For everything but title.
extern const int kMessageLineHeight; // In pixels.
// Colors.
extern const SkColor kNotificationBackgroundColor; // Background of the card.
extern const SkColor kLegacyIconBackgroundColor; // Used behind icons smaller.
// than the icon view.
extern const SkColor kRegularTextColor; // Title, message, ...
extern const SkColor kFocusBorderColor; // The focus border.
// Limits.
extern const int kNotificationMaximumImageHeight; // For image notifications.
extern const size_t kNotificationMaximumItems; // For list notifications.
// Timing.
extern const int kAutocloseDefaultDelaySeconds;
extern const int kAutocloseHighPriorityDelaySeconds;
// Around notifications ////////////////////////////////////////////////////////
// Pixel dimensions (H = horizontal, V = vertical).
MESSAGE_CENTER_EXPORT extern const int kMarginBetweenItems; // H & V space
// around & between
// notifications.
// Colors.
extern const SkColor kBackgroundLightColor; // Behind notifications, gradient
extern const SkColor kBackgroundDarkColor; // from light to dark.
} // namespace message_center
#endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_CONSTANTS_H_