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

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

Issue 1661673004: Enables hot-tracking for overflow extension buttons in the app menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restores hot-tracking of extension buttons in app menu with MD Created 4 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_scroll_view_container.cc
diff --git a/ui/views/controls/menu/menu_scroll_view_container.cc b/ui/views/controls/menu/menu_scroll_view_container.cc
index 05c8caedb5505b4ac7c596195ec5d4aa02a4f7f0..09f8ed6234af805c1aba8f01f656c03678939db2 100644
--- a/ui/views/controls/menu/menu_scroll_view_container.cc
+++ b/ui/views/controls/menu/menu_scroll_view_container.cc
@@ -75,8 +75,7 @@ class MenuScrollButton : public View {
// The background.
gfx::Rect item_bounds(0, 0, width(), height());
- NativeTheme::ExtraParams extra;
- extra.menu_item.is_selected = false;
+ NativeTheme::ExtraParams extra = NativeTheme::ExtraParams();
Peter Kasting 2016/02/06 02:51:13 Why is explicitly calling the null constructor nee
varkha 2016/02/16 19:59:44 To make sure all members are zero-initialized (Nat
Peter Kasting 2016/02/16 21:36:14 I thought the standard said that for a union witho
varkha 2016/02/17 17:52:00 Yes, I have tried this without this line and the c
Peter Kasting 2016/02/17 22:12:04 That language in your footnotes is exactly what I
varkha 2016/02/17 23:15:57 I'll do that.
varkha 2016/02/18 02:24:01 Done.
GetNativeTheme()->Paint(canvas->sk_canvas(),
NativeTheme::kMenuItemBackground,
NativeTheme::kNormal, item_bounds, extra);
« ui/views/controls/menu/menu_controller.cc ('K') | « ui/views/controls/menu/menu_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698