| 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ROUNDED_RECT_PAINTER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ROUNDED_RECT_PAINTER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ROUNDED_RECT_PAINTER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ROUNDED_RECT_PAINTER_H_ |
| 7 | 7 |
| 8 #include "app/gfx/canvas.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| 11 class Border; | 11 class Border; |
| 12 class Painter; | 12 class Painter; |
| 13 } // namespace views | 13 } // namespace views |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 struct BorderDefinition { | 17 struct BorderDefinition { |
| 18 int padding; | 18 int padding; |
| 19 SkColor padding_color; | 19 SkColor padding_color; |
| 20 int shadow; | 20 int shadow; |
| 21 SkColor shadow_color; | 21 SkColor shadow_color; |
| 22 int corner_radius; | 22 int corner_radius; |
| 23 SkColor top_color; | 23 SkColor top_color; |
| 24 SkColor bottom_color; | 24 SkColor bottom_color; |
| 25 | 25 |
| 26 static const BorderDefinition kWizardBorder; | 26 static const BorderDefinition kWizardBorder; |
| 27 static const BorderDefinition kScreenBorder; | 27 static const BorderDefinition kScreenBorder; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 // Creates painter to paint view background with parameters specified. | 30 // Creates painter to paint view background with parameters specified. |
| 31 views::Painter* CreateWizardPainter(const BorderDefinition* const border); | 31 views::Painter* CreateWizardPainter(const BorderDefinition* const border); |
| 32 // Creates border to draw around view with parameters specified. | 32 // Creates border to draw around view with parameters specified. |
| 33 views::Border* CreateWizardBorder(const BorderDefinition* const border); | 33 views::Border* CreateWizardBorder(const BorderDefinition* const border); |
| 34 | 34 |
| 35 } // namespace chromeos | 35 } // namespace chromeos |
| 36 | 36 |
| 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ROUNDED_RECT_PAINTER_H_ | 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ROUNDED_RECT_PAINTER_H_ |
| OLD | NEW |