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

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

Issue 1757993004: Added ink drop hover/ripple to menu hosting bookmark buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests. Created 4 years, 9 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_controller.cc
diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc
index 3bbb0457f661c1ca2b67e4c921fa578b9df7a5d8..dd9aa4db0c181109b6b778ac27c61a4e7d379405 100644
--- a/ui/views/controls/menu/menu_controller.cc
+++ b/ui/views/controls/menu/menu_controller.cc
@@ -464,7 +464,7 @@ MenuItemView* MenuController::Run(Widget* parent,
}
if (button)
- pressed_lock_.reset(new MenuButton::PressedLock(button));
+ pressed_lock_.reset(new MenuButton::PressedLock(button, true));
// Make sure Chrome doesn't attempt to shut down while the menu is showing.
if (ViewsDelegate::GetInstance())
@@ -1451,7 +1451,7 @@ bool MenuController::ShowSiblingMenu(SubmenuView* source,
// There is a sibling menu, update the button state, hide the current menu
// and show the new one.
- pressed_lock_.reset(new MenuButton::PressedLock(button));
+ pressed_lock_.reset(new MenuButton::PressedLock(button, false));
// Need to reset capture when we show the menu again, otherwise we aren't
// going to get any events.
« ui/views/controls/button/menu_button.cc ('K') | « ui/views/controls/button/menu_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698