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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 // The UMA histogram that logs how long the search query was when a result was | 141 // The UMA histogram that logs how long the search query was when a result was |
142 // opened. | 142 // opened. |
143 const char kSearchQueryLength[] = "Apps.AppListSearchQueryLength"; | 143 const char kSearchQueryLength[] = "Apps.AppListSearchQueryLength"; |
144 | 144 |
145 // The UMA histogram that logs the Manhattan distance from the origin of the | 145 // The UMA histogram that logs the Manhattan distance from the origin of the |
146 // search results to the selected result. | 146 // search results to the selected result. |
147 const char kSearchResultDistanceFromOrigin[] = | 147 const char kSearchResultDistanceFromOrigin[] = |
148 "Apps.AppListSearchResultDistanceFromOrigin"; | 148 "Apps.AppListSearchResultDistanceFromOrigin"; |
149 | 149 |
| 150 // The height of tiles in search result. |
| 151 const int kSearchTileHeight = 92; |
| 152 |
150 gfx::ShadowValue GetShadowForZHeight(int z_height) { | 153 gfx::ShadowValue GetShadowForZHeight(int z_height) { |
151 if (z_height <= 0) | 154 if (z_height <= 0) |
152 return gfx::ShadowValue(); | 155 return gfx::ShadowValue(); |
153 | 156 |
154 switch (z_height) { | 157 switch (z_height) { |
155 case 1: | 158 case 1: |
156 return gfx::ShadowValue(gfx::Vector2d(0, 1), 4, | 159 return gfx::ShadowValue(gfx::Vector2d(0, 1), 4, |
157 SkColorSetARGB(0x4C, 0, 0, 0)); | 160 SkColorSetARGB(0x4C, 0, 0, 0)); |
158 case 2: | 161 case 2: |
159 return gfx::ShadowValue(gfx::Vector2d(0, 2), 8, | 162 return gfx::ShadowValue(gfx::Vector2d(0, 2), 8, |
(...skipping 12 matching lines...) Expand all Loading... |
172 } | 175 } |
173 | 176 |
174 const gfx::ShadowValues& IconEndShadows() { | 177 const gfx::ShadowValues& IconEndShadows() { |
175 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, | 178 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, |
176 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 8, | 179 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 8, |
177 SkColorSetARGB(0x50, 0, 0, 0)))); | 180 SkColorSetARGB(0x50, 0, 0, 0)))); |
178 return icon_shadows; | 181 return icon_shadows; |
179 } | 182 } |
180 | 183 |
181 } // namespace app_list | 184 } // namespace app_list |
OLD | NEW |