OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_APP_LIST_APP_LIST_CONSTANTS_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_CONSTANTS_H_ |
6 #define UI_APP_LIST_APP_LIST_CONSTANTS_H_ | 6 #define UI_APP_LIST_APP_LIST_CONSTANTS_H_ |
7 | 7 |
8 #include "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
9 #include "ui/app_list/app_list_export.h" | 9 #include "ui/app_list/app_list_export.h" |
10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
11 #include "ui/gfx/animation/tween.h" | 11 #include "ui/gfx/animation/tween.h" |
| 12 #include "ui/gfx/shadow_value.h" |
12 | 13 |
13 namespace app_list { | 14 namespace app_list { |
14 | 15 |
15 APP_LIST_EXPORT extern const SkColor kContentsBackgroundColor; | 16 APP_LIST_EXPORT extern const SkColor kContentsBackgroundColor; |
16 APP_LIST_EXPORT extern const SkColor kSearchBoxBackground; | 17 APP_LIST_EXPORT extern const SkColor kSearchBoxBackground; |
17 APP_LIST_EXPORT extern const SkColor kLabelBackgroundColor; | 18 APP_LIST_EXPORT extern const SkColor kLabelBackgroundColor; |
18 APP_LIST_EXPORT extern const SkColor kTopSeparatorColor; | 19 APP_LIST_EXPORT extern const SkColor kTopSeparatorColor; |
19 APP_LIST_EXPORT extern const SkColor kBottomSeparatorColor; | 20 APP_LIST_EXPORT extern const SkColor kBottomSeparatorColor; |
20 | 21 |
21 APP_LIST_EXPORT extern const SkColor kDialogSeparatorColor; | 22 APP_LIST_EXPORT extern const SkColor kDialogSeparatorColor; |
(...skipping 14 matching lines...) Expand all Loading... |
36 APP_LIST_EXPORT extern const SkColor kGridTitleHoverColor; | 37 APP_LIST_EXPORT extern const SkColor kGridTitleHoverColor; |
37 | 38 |
38 APP_LIST_EXPORT extern const SkColor kFolderTitleColor; | 39 APP_LIST_EXPORT extern const SkColor kFolderTitleColor; |
39 APP_LIST_EXPORT extern const SkColor kFolderTitleHintTextColor; | 40 APP_LIST_EXPORT extern const SkColor kFolderTitleHintTextColor; |
40 APP_LIST_EXPORT extern const SkColor kFolderBubbleColor; | 41 APP_LIST_EXPORT extern const SkColor kFolderBubbleColor; |
41 APP_LIST_EXPORT extern const SkColor kFolderShadowColor; | 42 APP_LIST_EXPORT extern const SkColor kFolderShadowColor; |
42 APP_LIST_EXPORT extern const float kFolderBubbleRadius; | 43 APP_LIST_EXPORT extern const float kFolderBubbleRadius; |
43 APP_LIST_EXPORT extern const float kFolderShadowRadius; | 44 APP_LIST_EXPORT extern const float kFolderShadowRadius; |
44 APP_LIST_EXPORT extern const float kFolderShadowOffsetY; | 45 APP_LIST_EXPORT extern const float kFolderShadowOffsetY; |
45 | 46 |
46 APP_LIST_EXPORT extern const int kCardShadowBlur; | |
47 APP_LIST_EXPORT extern const int kCardShadowYOffset; | |
48 APP_LIST_EXPORT extern const SkColor kCardShadowColor; | |
49 APP_LIST_EXPORT extern const SkColor kCardBackgroundColor; | 47 APP_LIST_EXPORT extern const SkColor kCardBackgroundColor; |
50 | 48 |
51 APP_LIST_EXPORT extern const int kPageTransitionDurationInMs; | 49 APP_LIST_EXPORT extern const int kPageTransitionDurationInMs; |
52 APP_LIST_EXPORT extern const int kOverscrollPageTransitionDurationMs; | 50 APP_LIST_EXPORT extern const int kOverscrollPageTransitionDurationMs; |
53 APP_LIST_EXPORT extern const int kFolderTransitionInDurationMs; | 51 APP_LIST_EXPORT extern const int kFolderTransitionInDurationMs; |
54 APP_LIST_EXPORT extern const int kFolderTransitionOutDurationMs; | 52 APP_LIST_EXPORT extern const int kFolderTransitionOutDurationMs; |
55 APP_LIST_EXPORT extern const int kCustomPageCollapsedHeight; | 53 APP_LIST_EXPORT extern const int kCustomPageCollapsedHeight; |
56 APP_LIST_EXPORT extern const gfx::Tween::Type kFolderFadeInTweenType; | 54 APP_LIST_EXPORT extern const gfx::Tween::Type kFolderFadeInTweenType; |
57 APP_LIST_EXPORT extern const gfx::Tween::Type kFolderFadeOutTweenType; | 55 APP_LIST_EXPORT extern const gfx::Tween::Type kFolderFadeOutTweenType; |
58 | 56 |
(...skipping 18 matching lines...) Expand all Loading... |
77 APP_LIST_EXPORT extern const size_t kNumFolderTopItems; | 75 APP_LIST_EXPORT extern const size_t kNumFolderTopItems; |
78 APP_LIST_EXPORT extern const size_t kMaxFolderNameChars; | 76 APP_LIST_EXPORT extern const size_t kMaxFolderNameChars; |
79 | 77 |
80 APP_LIST_EXPORT extern const ui::ResourceBundle::FontStyle kItemTextFontStyle; | 78 APP_LIST_EXPORT extern const ui::ResourceBundle::FontStyle kItemTextFontStyle; |
81 | 79 |
82 #if defined(OS_LINUX) | 80 #if defined(OS_LINUX) |
83 // The WM_CLASS name for the app launcher window on Linux. | 81 // The WM_CLASS name for the app launcher window on Linux. |
84 APP_LIST_EXPORT extern const char kAppListWMClass[]; | 82 APP_LIST_EXPORT extern const char kAppListWMClass[]; |
85 #endif | 83 #endif |
86 | 84 |
| 85 // Returns the shadow values for a view at |z_height|. |
| 86 gfx::ShadowValue APP_LIST_EXPORT GetShadowForZHeight(int z_height); |
| 87 |
87 } // namespace app_list | 88 } // namespace app_list |
88 | 89 |
89 #endif // UI_APP_LIST_APP_LIST_CONSTANTS_H_ | 90 #endif // UI_APP_LIST_APP_LIST_CONSTANTS_H_ |
OLD | NEW |