Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: ui/app_list/app_list_constants.cc

Issue 2787693002: Remove more dead app list code. (Closed)
Patch Set: updated comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/app_list_folder_item.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 {
11 11
12 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xF2, 0xF2, 0xF2); 12 const SkColor kContentsBackgroundColor = SkColorSetRGB(0xF2, 0xF2, 0xF2);
13 const SkColor kSearchBoxBackground = SK_ColorWHITE; 13 const SkColor kSearchBoxBackground = SK_ColorWHITE;
14 14
15 const SkColor kSearchTextColor = SkColorSetRGB(0x33, 0x33, 0x33); 15 const SkColor kSearchTextColor = SkColorSetRGB(0x33, 0x33, 0x33);
16 16
17 // In Windows, transparent background color will cause ugly text rendering,
18 // therefore kContentsBackgroundColor should be used. See crbug.com/406989
19 #if defined(OS_CHROMEOS)
20 const SkColor kLabelBackgroundColor = SK_ColorTRANSPARENT; 17 const SkColor kLabelBackgroundColor = SK_ColorTRANSPARENT;
21 #else
22 const SkColor kLabelBackgroundColor = kContentsBackgroundColor;
23 #endif
24 18
25 const SkColor kTopSeparatorColor = SkColorSetRGB(0xC0, 0xC0, 0xC0); 19 const SkColor kTopSeparatorColor = SkColorSetRGB(0xC0, 0xC0, 0xC0);
26 const SkColor kBottomSeparatorColor = SkColorSetRGB(0xC0, 0xC0, 0xC0); 20 const SkColor kBottomSeparatorColor = SkColorSetRGB(0xC0, 0xC0, 0xC0);
27 21
28 // The color of the separator used inside dialogs in the app list. 22 // The color of the separator used inside dialogs in the app list.
29 const SkColor kDialogSeparatorColor = SkColorSetRGB(0xD1, 0xD1, 0xD1); 23 const SkColor kDialogSeparatorColor = SkColorSetRGB(0xD1, 0xD1, 0xD1);
30 24
31 // The mouse hover colour (3% black). 25 // The mouse hover colour (3% black).
32 const SkColor kHighlightedColor = SkColorSetARGB(8, 0, 0, 0); 26 const SkColor kHighlightedColor = SkColorSetARGB(8, 0, 0, 0);
33 // The keyboard select colour (6% black). 27 // The keyboard select colour (6% black).
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 127
134 // The UMA histogram that logs how long the search query was when a result was 128 // The UMA histogram that logs how long the search query was when a result was
135 // opened. 129 // opened.
136 const char kSearchQueryLength[] = "Apps.AppListSearchQueryLength"; 130 const char kSearchQueryLength[] = "Apps.AppListSearchQueryLength";
137 131
138 // The UMA histogram that logs the Manhattan distance from the origin of the 132 // The UMA histogram that logs the Manhattan distance from the origin of the
139 // search results to the selected result. 133 // search results to the selected result.
140 const char kSearchResultDistanceFromOrigin[] = 134 const char kSearchResultDistanceFromOrigin[] =
141 "Apps.AppListSearchResultDistanceFromOrigin"; 135 "Apps.AppListSearchResultDistanceFromOrigin";
142 136
143 #if defined(OS_LINUX)
144 #if defined(GOOGLE_CHROME_BUILD)
145 const char kAppListWMClass[] = "chrome_app_list";
146 #else // CHROMIUM_BUILD
147 const char kAppListWMClass[] = "chromium_app_list";
148 #endif
149 #endif
150
151 gfx::ShadowValue GetShadowForZHeight(int z_height) { 137 gfx::ShadowValue GetShadowForZHeight(int z_height) {
152 if (z_height <= 0) 138 if (z_height <= 0)
153 return gfx::ShadowValue(); 139 return gfx::ShadowValue();
154 140
155 switch (z_height) { 141 switch (z_height) {
156 case 1: 142 case 1:
157 return gfx::ShadowValue(gfx::Vector2d(0, 1), 4, 143 return gfx::ShadowValue(gfx::Vector2d(0, 1), 4,
158 SkColorSetARGB(0x4C, 0, 0, 0)); 144 SkColorSetARGB(0x4C, 0, 0, 0));
159 case 2: 145 case 2:
160 return gfx::ShadowValue(gfx::Vector2d(0, 2), 8, 146 return gfx::ShadowValue(gfx::Vector2d(0, 2), 8,
(...skipping 12 matching lines...) Expand all
173 } 159 }
174 160
175 const gfx::ShadowValues& IconEndShadows() { 161 const gfx::ShadowValues& IconEndShadows() {
176 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, 162 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows,
177 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 8, 163 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 8,
178 SkColorSetARGB(0x50, 0, 0, 0)))); 164 SkColorSetARGB(0x50, 0, 0, 0))));
179 return icon_shadows; 165 return icon_shadows;
180 } 166 }
181 167
182 } // namespace app_list 168 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/app_list_constants.h ('k') | ui/app_list/app_list_folder_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698