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

Unified Diff: ui/gfx/native_theme_chromeos.cc

Issue 9565021: ui/gfx: Drop unused args from PaintMenuBackgroundColor() and pass gfx::Size instead of gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/gfx/native_theme_chromeos.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/native_theme_chromeos.cc
diff --git a/ui/gfx/native_theme_chromeos.cc b/ui/gfx/native_theme_chromeos.cc
index 944812fa09377886ff26b76bec8271da9a4d6575..c01d6dd2ed9b4c8a841c69352e33130367acbb61 100644
--- a/ui/gfx/native_theme_chromeos.cc
+++ b/ui/gfx/native_theme_chromeos.cc
@@ -661,9 +661,7 @@ void NativeThemeChromeos::PaintInnerSpinButton(SkCanvas* canvas,
void NativeThemeChromeos::PaintMenuPopupBackground(
SkCanvas* canvas,
- State state,
- const gfx::Rect& rect,
- const MenuListExtraParams& menu_list) const {
+ const gfx::Size& size) const {
static const SkColor kGradientColors[2] = {
SK_ColorWHITE,
SkColorSetRGB(0xF0, 0xF0, 0xF0)
@@ -676,7 +674,7 @@ void NativeThemeChromeos::PaintMenuPopupBackground(
SkPoint points[2];
points[0].iset(0, 0);
- points[1].iset(0, rect.height());
+ points[1].iset(0, size.height());
SkShader* shader = SkGradientShader::CreateLinear(points,
kGradientColors, kGradientPoints, arraysize(kGradientPoints),
@@ -690,7 +688,7 @@ void NativeThemeChromeos::PaintMenuPopupBackground(
paint.setStyle(SkPaint::kFill_Style);
paint.setXfermodeMode(SkXfermode::kSrc_Mode);
- canvas->drawRect(gfx::RectToSkRect(gfx::Rect(rect.size())), paint);
+ canvas->drawRect(gfx::RectToSkRect(gfx::Rect(size)), paint);
}
void NativeThemeChromeos::PaintProgressBar(SkCanvas* canvas,
« no previous file with comments | « ui/gfx/native_theme_chromeos.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698