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

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

Issue 884653003: gfx::ShadowValue: offset is a Vector2d, not Point. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile. Created 5 years, 9 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
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 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const char kAppListWMClass[] = "chromium_app_list"; 144 const char kAppListWMClass[] = "chromium_app_list";
145 #endif 145 #endif
146 #endif 146 #endif
147 147
148 gfx::ShadowValue GetShadowForZHeight(int z_height) { 148 gfx::ShadowValue GetShadowForZHeight(int z_height) {
149 if (z_height <= 0) 149 if (z_height <= 0)
150 return gfx::ShadowValue(); 150 return gfx::ShadowValue();
151 151
152 switch (z_height) { 152 switch (z_height) {
153 case 1: 153 case 1:
154 return gfx::ShadowValue(gfx::Point(0, 1), 2, 154 return gfx::ShadowValue(gfx::Vector2d(0, 1), 2,
155 SkColorSetARGB(0x4C, 0, 0, 0)); 155 SkColorSetARGB(0x4C, 0, 0, 0));
156 case 2: 156 case 2:
157 return gfx::ShadowValue(gfx::Point(0, 2), 4, 157 return gfx::ShadowValue(gfx::Vector2d(0, 2), 4,
158 SkColorSetARGB(0x33, 0, 0, 0)); 158 SkColorSetARGB(0x33, 0, 0, 0));
159 default: 159 default:
160 return gfx::ShadowValue(gfx::Point(0, 8), 12, 160 return gfx::ShadowValue(gfx::Vector2d(0, 8), 12,
161 SkColorSetARGB(0x3F, 0, 0, 0)); 161 SkColorSetARGB(0x3F, 0, 0, 0));
162 } 162 }
163 } 163 }
164 164
165 } // namespace app_list 165 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/new_avatar_button.cc ('k') | ui/app_list/views/app_list_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698