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

Unified Diff: ui/gfx/native_theme_base.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_base.h ('k') | ui/gfx/native_theme_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/native_theme_base.cc
diff --git a/ui/gfx/native_theme_base.cc b/ui/gfx/native_theme_base.cc
index 035563153874672fd98476d8ea6521af5c12a299..8e5871bf98b23a6d375837e76283127190a1a042 100644
--- a/ui/gfx/native_theme_base.cc
+++ b/ui/gfx/native_theme_base.cc
@@ -145,7 +145,7 @@ void NativeThemeBase::Paint(SkCanvas* canvas,
NOTIMPLEMENTED();
break;
case kMenuPopupBackground:
- PaintMenuPopupBackground(canvas, state, rect, extra.menu_list);
+ PaintMenuPopupBackground(canvas, rect.size());
break;
case kMenuPopupGutter:
case kMenuPopupSeparator:
@@ -666,11 +666,8 @@ void NativeThemeBase::PaintMenuList(
canvas->drawPath(path, paint);
}
-void NativeThemeBase::PaintMenuPopupBackground(
- SkCanvas* canvas,
- State state,
- const gfx::Rect& rect,
- const MenuListExtraParams& menu_list) const {
+void NativeThemeBase::PaintMenuPopupBackground(SkCanvas* canvas,
+ const gfx::Size& size) const {
canvas->drawColor(kMenuPopupBackgroundColor, SkXfermode::kSrc_Mode);
}
« no previous file with comments | « ui/gfx/native_theme_base.h ('k') | ui/gfx/native_theme_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698