| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |