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 #include "ui/app_list/app_list_constants.h" | 5 #include "ui/app_list/app_list_constants.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "ui/gfx/color_palette.h" | 8 #include "ui/gfx/color_palette.h" |
9 | 9 |
10 namespace app_list { | 10 namespace app_list { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // Animation curve used for fading in the target page when opening or closing | 76 // Animation curve used for fading in the target page when opening or closing |
77 // a folder. | 77 // a folder. |
78 const gfx::Tween::Type kFolderFadeInTweenType = gfx::Tween::EASE_IN_2; | 78 const gfx::Tween::Type kFolderFadeInTweenType = gfx::Tween::EASE_IN_2; |
79 | 79 |
80 // Animation curve used for fading out the target page when opening or closing | 80 // Animation curve used for fading out the target page when opening or closing |
81 // a folder. | 81 // a folder. |
82 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN; | 82 const gfx::Tween::Type kFolderFadeOutTweenType = gfx::Tween::FAST_OUT_LINEAR_IN; |
83 | 83 |
84 // Preferred number of columns and rows in apps grid. | 84 // Preferred number of columns and rows in apps grid. |
85 const int kPreferredCols = 4; | 85 const int kPreferredCols = 4; |
86 #if defined(OS_CHROMEOS) | |
87 const int kPreferredRows = 4; | 86 const int kPreferredRows = 4; |
88 #else | |
89 const int kPreferredRows = 3; | |
90 #endif // defined(OS_CHROMEOS) | |
91 const int kGridIconDimension = 48; | 87 const int kGridIconDimension = 48; |
92 | 88 |
93 // Preferred search result icon sizes. | 89 // Preferred search result icon sizes. |
94 const int kListIconSize = 24; | 90 const int kListIconSize = 24; |
95 const int kListBadgeIconSize = 16; | 91 const int kListBadgeIconSize = 16; |
96 const int kListBadgeIconOffsetX = 6; | 92 const int kListBadgeIconOffsetX = 6; |
97 const int kListBadgeIconOffsetY = 6; | 93 const int kListBadgeIconOffsetY = 6; |
98 const int kTileIconSize = 48; | 94 const int kTileIconSize = 48; |
99 | 95 |
100 const SkColor kIconColor = gfx::kChromeIconGrey; | 96 const SkColor kIconColor = gfx::kChromeIconGrey; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 } | 183 } |
188 | 184 |
189 const gfx::ShadowValues& IconEndShadows() { | 185 const gfx::ShadowValues& IconEndShadows() { |
190 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, | 186 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, |
191 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, | 187 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, |
192 SkColorSetARGB(0x50, 0, 0, 0)))); | 188 SkColorSetARGB(0x50, 0, 0, 0)))); |
193 return icon_shadows; | 189 return icon_shadows; |
194 } | 190 } |
195 | 191 |
196 } // namespace app_list | 192 } // namespace app_list |
OLD | NEW |