Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / message_center / views / constants.h
bloba8cc80d78414560bfffbf8129a7265d6a0a98d90
1 // Copyright 2013 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.
5 #ifndef UI_MESSAGE_CENTER_VIEWS_CONSTANTS_H_
6 #define UI_MESSAGE_CENTER_VIEWS_CONSTANTS_H_
8 #include "base/basictypes.h"
9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/geometry/size.h"
11 #include "ui/message_center/message_center_style.h"
13 namespace message_center {
15 // The text background colors below are used only to keep
16 // view::Label from modifying the text color and will not actually be drawn.
17 // See view::Label's RecalculateColors() for details.
18 const SkColor kRegularTextBackgroundColor = SK_ColorWHITE;
19 const SkColor kDimTextBackgroundColor = SK_ColorWHITE;
20 const SkColor kContextTextBackgroundColor = SK_ColorWHITE;
22 const int kIconSize = message_center::kNotificationIconSize;
23 const int kLegacyIconSize = 40;
24 const int kTextBottomPadding = 12;
25 const int kItemTitleToMessagePadding = 3;
26 const int kButtonVecticalPadding = 0;
27 const int kButtonTitleTopPadding = 0;
29 // Character limits: Displayed text will be subject to the line limits above,
30 // but we also remove trailing characters from text to reduce processing cost.
31 // Character limit = pixels per line * line limit / min. pixels per character.
32 const int kMinPixelsPerTitleCharacter = 4;
33 const size_t kMessageCharacterLimit =
34 message_center::kNotificationWidth *
35 message_center::kMessageExpandedLineLimit / 3;
36 const size_t kContextMessageCharacterLimit =
37 message_center::kNotificationWidth *
38 message_center::kContextMessageLineLimit / 3;
40 } // namespace message_center
42 #endif // UI_MESSAGE_CENTER_VIEWS_CONSTANTS_H_