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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 const SkColor kIconColor = gfx::kChromeIconGrey; | 100 const SkColor kIconColor = gfx::kChromeIconGrey; |
101 | 101 |
102 // Preferred number of columns and rows in the centered app list apps grid. | 102 // Preferred number of columns and rows in the centered app list apps grid. |
103 const int kCenteredPreferredCols = 6; | 103 const int kCenteredPreferredCols = 6; |
104 const int kCenteredPreferredRows = 3; | 104 const int kCenteredPreferredRows = 3; |
105 | 105 |
106 // Preferred number of columns and rows in the experimental app list apps grid. | 106 // Preferred number of columns and rows in the experimental app list apps grid. |
107 const int kExperimentalPreferredCols = 6; | 107 const int kExperimentalPreferredCols = 6; |
108 const int kExperimentalPreferredRows = 4; | 108 const int kExperimentalPreferredRows = 4; |
109 | 109 |
| 110 // The number of apps shown in the start page app grid. |
| 111 const size_t kNumStartPageTiles = 9; |
| 112 |
| 113 // Maximum number of results to show in the launcher Search UI. |
| 114 const size_t kMaxSearchResults = 6; |
| 115 |
110 // Radius of the circle, in which if entered, show re-order preview. | 116 // Radius of the circle, in which if entered, show re-order preview. |
111 const int kReorderDroppingCircleRadius = 35; | 117 const int kReorderDroppingCircleRadius = 35; |
112 | 118 |
113 // The padding around the outside of the experimental app list apps grid | 119 // The padding around the outside of the experimental app list apps grid |
114 // (sides). | 120 // (sides). |
115 const int kExperimentalAppsGridPadding = 24; | 121 const int kExperimentalAppsGridPadding = 24; |
116 | 122 |
117 // The padding around the outside of the experimental app list search box (top | 123 // The padding around the outside of the experimental app list search box (top |
118 // and sides). | 124 // and sides). |
119 const int kExperimentalSearchBoxPadding = 16; | 125 const int kExperimentalSearchBoxPadding = 16; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 } | 187 } |
182 | 188 |
183 const gfx::ShadowValues& IconEndShadows() { | 189 const gfx::ShadowValues& IconEndShadows() { |
184 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, | 190 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, |
185 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, | 191 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, |
186 SkColorSetARGB(0x50, 0, 0, 0)))); | 192 SkColorSetARGB(0x50, 0, 0, 0)))); |
187 return icon_shadows; | 193 return icon_shadows; |
188 } | 194 } |
189 | 195 |
190 } // namespace app_list | 196 } // namespace app_list |
OLD | NEW |