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

Unified Diff: ui/native_theme/native_theme_base.cc

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/native_theme/native_theme_base.h ('k') | ui/views/controls/menu/menu_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_base.cc
diff --git a/ui/native_theme/native_theme_base.cc b/ui/native_theme/native_theme_base.cc
index 7a833f6f889572f68b5757de09f67f349dd446bc..70dbcc4eadab7aee6e2ad74533dad513e2f4537a 100644
--- a/ui/native_theme/native_theme_base.cc
+++ b/ui/native_theme/native_theme_base.cc
@@ -176,7 +176,7 @@ void NativeThemeBase::Paint(SkCanvas* canvas,
NOTIMPLEMENTED();
break;
case kMenuPopupBackground:
- PaintMenuPopupBackground(canvas, rect.size());
+ PaintMenuPopupBackground(canvas, rect.size(), extra.menu_background);
break;
case kMenuPopupGutter:
case kMenuPopupSeparator:
@@ -867,8 +867,10 @@ void NativeThemeBase::PaintMenuList(
canvas->drawPath(path, paint);
}
-void NativeThemeBase::PaintMenuPopupBackground(SkCanvas* canvas,
- const gfx::Size& size) const {
+void NativeThemeBase::PaintMenuPopupBackground(
+ SkCanvas* canvas,
+ const gfx::Size& size,
+ const MenuBackgroundExtraParams& menu_background) const {
canvas->drawColor(kMenuPopupBackgroundColor, SkXfermode::kSrc_Mode);
}
« no previous file with comments | « ui/native_theme/native_theme_base.h ('k') | ui/views/controls/menu/menu_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698