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

Unified Diff: ui/views/controls/menu/menu_item_view.cc

Issue 12395034: Write a NativeThemeGtk2 class for linux_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove a bunch of colors Created 7 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
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 4fe0f53e97baacab908b12d8cae3a8dc65379a28..8ac72d6c0585e9df5bd33a17aa08605a2da677ab 100644
--- a/ui/views/controls/menu/menu_item_view.cc
+++ b/ui/views/controls/menu/menu_item_view.cc
@@ -792,6 +792,8 @@ void MenuItemView::PaintButtonCommon(gfx::Canvas* canvas,
&override_color)) {
canvas->DrawColor(override_color);
} else if (render_selection) {
+ // TODO(erg): The following doesn't actually get the focused menu item
+ // background for times when we want to match the native OS.
if (ui::NativeTheme::IsNewMenuStyleEnabled()) {
gfx::Rect item_bounds(0, 0, width(), height());
AdjustBoundsForRTLUI(&item_bounds);

Powered by Google App Engine
This is Rietveld 408576698