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

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

Issue 1818913004: Add deprecation warning banner to App Launcher on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tapted-applist-deprecation-mac
Patch Set: Rebase on 1842373004 (fixes app list height some more on Chrome OS). Created 4 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 | « no previous file | ui/app_list/views/app_list_view_unittest.cc » ('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 {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)
86 const int kPreferredRows = 4; 87 const int kPreferredRows = 4;
88 #else
89 const int kPreferredRows = 3;
90 #endif // defined(OS_CHROMEOS)
87 const int kGridIconDimension = 48; 91 const int kGridIconDimension = 48;
88 92
89 // Preferred search result icon sizes. 93 // Preferred search result icon sizes.
90 const int kListIconSize = 24; 94 const int kListIconSize = 24;
91 const int kListBadgeIconSize = 16; 95 const int kListBadgeIconSize = 16;
92 const int kListBadgeIconOffsetX = 6; 96 const int kListBadgeIconOffsetX = 6;
93 const int kListBadgeIconOffsetY = 6; 97 const int kListBadgeIconOffsetY = 6;
94 const int kTileIconSize = 48; 98 const int kTileIconSize = 48;
95 99
96 const SkColor kIconColor = gfx::kChromeIconGrey; 100 const SkColor kIconColor = gfx::kChromeIconGrey;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 181 }
178 182
179 const gfx::ShadowValues& IconEndShadows() { 183 const gfx::ShadowValues& IconEndShadows() {
180 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows, 184 CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows,
181 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4, 185 (1, gfx::ShadowValue(gfx::Vector2d(0, 4), 4,
182 SkColorSetARGB(0x50, 0, 0, 0)))); 186 SkColorSetARGB(0x50, 0, 0, 0))));
183 return icon_shadows; 187 return icon_shadows;
184 } 188 }
185 189
186 } // namespace app_list 190 } // namespace app_list
OLDNEW
« no previous file with comments | « no previous file | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698