| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/chromeos/login/rounded_rect_painter.h" | 5 #include "chrome/browser/chromeos/login/rounded_rect_painter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "gfx/canvas_skia.h" | |
| 9 #include "chrome/browser/chromeos/login/helper.h" | 8 #include "chrome/browser/chromeos/login/helper.h" |
| 10 #include "third_party/skia/include/effects/SkBlurMaskFilter.h" | 9 #include "third_party/skia/include/effects/SkBlurMaskFilter.h" |
| 11 #include "third_party/skia/include/effects/SkGradientShader.h" | 10 #include "third_party/skia/include/effects/SkGradientShader.h" |
| 11 #include "ui/gfx/canvas_skia.h" |
| 12 #include "views/border.h" | 12 #include "views/border.h" |
| 13 #include "views/painter.h" | 13 #include "views/painter.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 const SkColor kScreenTopColor = SkColorSetRGB(250, 251, 251); | 19 const SkColor kScreenTopColor = SkColorSetRGB(250, 251, 251); |
| 20 const SkColor kScreenBottomColor = SkColorSetRGB(204, 209, 212); | 20 const SkColor kScreenBottomColor = SkColorSetRGB(204, 209, 212); |
| 21 const SkColor kScreenShadowColor = SkColorSetARGB(64, 34, 54, 115); | 21 const SkColor kScreenShadowColor = SkColorSetARGB(64, 34, 54, 115); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 views::Background* CreateRoundedBackground(int corner_radius, | 257 views::Background* CreateRoundedBackground(int corner_radius, |
| 258 int stroke_width, | 258 int stroke_width, |
| 259 SkColor background_color, | 259 SkColor background_color, |
| 260 SkColor stroke_color) { | 260 SkColor stroke_color) { |
| 261 return new RoundedBackground( | 261 return new RoundedBackground( |
| 262 corner_radius, stroke_width, background_color, stroke_color); | 262 corner_radius, stroke_width, background_color, stroke_color); |
| 263 } | 263 } |
| 264 | 264 |
| 265 } // namespace chromeos | 265 } // namespace chromeos |
| OLD | NEW |