Chromium Code Reviews| Index: ui/views/round_rect_painter.h |
| diff --git a/ui/views/round_rect_painter.h b/ui/views/round_rect_painter.h |
| index 7eac9c5a67be948a4a405ee00f8e6a4fc88834c3..0e45c1bb4de313ef31df88153865141ee6175464 100644 |
| --- a/ui/views/round_rect_painter.h |
| +++ b/ui/views/round_rect_painter.h |
| @@ -20,17 +20,20 @@ namespace views { |
| // Painter to draw a border with rounded corners. |
| class VIEWS_EXPORT RoundRectPainter : public Painter { |
| public: |
| - explicit RoundRectPainter(SkColor border_color); |
| + RoundRectPainter(SkColor border_color, int corner_radius); |
| virtual ~RoundRectPainter(); |
| // Painter overrides: |
| virtual void Paint(gfx::Canvas* canvas, const gfx::Size& size) OVERRIDE; |
| // Creates |path| for the same rectangle Paint() will draw. |
| - static void CreateRoundRectPath(const gfx::Rect& bounds, gfx::Path* path); |
| + static void CreateRoundRectPath(const gfx::Rect& bounds, |
| + gfx::Path* path, |
|
sky
2013/01/25 20:30:24
out param should be last arg.
varunjain
2013/01/25 22:57:29
Done.
|
| + int corner_radius); |
| private: |
| const SkColor border_color_; |
| + const int corner_radius_; |
| DISALLOW_COPY_AND_ASSIGN(RoundRectPainter); |
| }; |