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 namespace app_list { | 7 namespace app_list { |
8 | 8 |
9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xF2, 0xF2, 0xF2); | 9 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xF2, 0xF2, 0xF2); |
10 const SkColor kSearchBoxBackground = SK_ColorWHITE; | 10 const SkColor kSearchBoxBackground = SK_ColorWHITE; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const ui::ResourceBundle::FontStyle kItemTextFontStyle = | 122 const ui::ResourceBundle::FontStyle kItemTextFontStyle = |
123 ui::ResourceBundle::SmallFont; | 123 ui::ResourceBundle::SmallFont; |
124 | 124 |
125 // The UMA histogram that logs which page gets opened by the user. | 125 // The UMA histogram that logs which page gets opened by the user. |
126 const char kPageOpenedHistogram[] = "Apps.AppListPageOpened"; | 126 const char kPageOpenedHistogram[] = "Apps.AppListPageOpened"; |
127 | 127 |
128 // The UMA histogram that logs the type of search result opened. | 128 // The UMA histogram that logs the type of search result opened. |
129 const char kSearchResultOpenDisplayTypeHistogram[] = | 129 const char kSearchResultOpenDisplayTypeHistogram[] = |
130 "Apps.AppListSearchResultOpenDisplayType"; | 130 "Apps.AppListSearchResultOpenDisplayType"; |
131 | 131 |
| 132 // The UMA histogram that logs how long the search query was when a result was |
| 133 // opened. |
| 134 const char kSearchQueryLength[] = "Apps.AppListSearchQueryLength"; |
| 135 |
132 #if defined(OS_LINUX) | 136 #if defined(OS_LINUX) |
133 #if defined(GOOGLE_CHROME_BUILD) | 137 #if defined(GOOGLE_CHROME_BUILD) |
134 const char kAppListWMClass[] = "chrome_app_list"; | 138 const char kAppListWMClass[] = "chrome_app_list"; |
135 #else // CHROMIUM_BUILD | 139 #else // CHROMIUM_BUILD |
136 const char kAppListWMClass[] = "chromium_app_list"; | 140 const char kAppListWMClass[] = "chromium_app_list"; |
137 #endif | 141 #endif |
138 #endif | 142 #endif |
139 | 143 |
140 gfx::ShadowValue GetShadowForZHeight(int z_height) { | 144 gfx::ShadowValue GetShadowForZHeight(int z_height) { |
141 if (z_height <= 0) | 145 if (z_height <= 0) |
142 return gfx::ShadowValue(); | 146 return gfx::ShadowValue(); |
143 | 147 |
144 switch (z_height) { | 148 switch (z_height) { |
145 case 1: | 149 case 1: |
146 return gfx::ShadowValue(gfx::Vector2d(0, 1), 2, | 150 return gfx::ShadowValue(gfx::Vector2d(0, 1), 2, |
147 SkColorSetARGB(0x4C, 0, 0, 0)); | 151 SkColorSetARGB(0x4C, 0, 0, 0)); |
148 case 2: | 152 case 2: |
149 return gfx::ShadowValue(gfx::Vector2d(0, 2), 4, | 153 return gfx::ShadowValue(gfx::Vector2d(0, 2), 4, |
150 SkColorSetARGB(0x33, 0, 0, 0)); | 154 SkColorSetARGB(0x33, 0, 0, 0)); |
151 default: | 155 default: |
152 return gfx::ShadowValue(gfx::Vector2d(0, 8), 12, | 156 return gfx::ShadowValue(gfx::Vector2d(0, 8), 12, |
153 SkColorSetARGB(0x3F, 0, 0, 0)); | 157 SkColorSetARGB(0x3F, 0, 0, 0)); |
154 } | 158 } |
155 } | 159 } |
156 | 160 |
157 } // namespace app_list | 161 } // namespace app_list |
OLD | NEW |