Chromium Code Reviews| Index: ui/views/controls/menu/menu_item_view.cc |
| diff --git a/ui/views/controls/menu/menu_item_view.cc b/ui/views/controls/menu/menu_item_view.cc |
| index 0c66f171383c6b89d3db7da92901778d3525c9cb..92beab2fbe0892b2cee21c9335f2f17fe12ab0dc 100644 |
| --- a/ui/views/controls/menu/menu_item_view.cc |
| +++ b/ui/views/controls/menu/menu_item_view.cc |
| @@ -776,7 +776,13 @@ void MenuItemView::PaintButtonCommon(gfx::Canvas* canvas, |
| // only need the background when we want it to look different, as when we're |
| // selected. |
| ui::NativeTheme* native_theme = GetNativeTheme(); |
| - if (render_selection) { |
| + SkColor override_color; |
| + if (GetDelegate() && |
| + GetDelegate()->GetBackgroundColor(GetCommand(), |
| + IsSelected(), |
|
sky
2013/02/01 00:17:33
IsSelected()->render_selection.
Mr4D (OOO till 08-26)
2013/02/01 15:48:28
Done.
|
| + &override_color)) { |
| + canvas->DrawColor(override_color); |
| + } else if (render_selection) { |
| if (ui::NativeTheme::IsNewMenuStyleEnabled()) { |
| gfx::Rect item_bounds(0, 0, width(), height()); |
| AdjustBoundsForRTLUI(&item_bounds); |