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

Unified Diff: ui/views/round_rect_painter.h

Issue 12041085: Fix menu corners: the menu background was being painted as a rect when in fact, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/menu/menu_scroll_view_container.cc ('k') | ui/views/round_rect_painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..772d9fad955f7a7f1c7cd55796c3cfcacf5fa761 100644
--- a/ui/views/round_rect_painter.h
+++ b/ui/views/round_rect_painter.h
@@ -20,17 +20,15 @@ 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);
-
private:
const SkColor border_color_;
+ const int corner_radius_;
DISALLOW_COPY_AND_ASSIGN(RoundRectPainter);
};
« no previous file with comments | « ui/views/controls/menu/menu_scroll_view_container.cc ('k') | ui/views/round_rect_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698