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

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

Issue 2831353002: Allow a LocatedEvent to be passed to MenuButton, so the ink drop animation is centered on the click… (Closed)
Patch Set: Created 3 years, 8 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 d5817198f55a1682451f93f7cc785e181b7083cf..df51c375be3ad9e54604cc0b5de44684505a54e7 100644
--- a/ui/views/controls/menu/menu_controller.cc
+++ b/ui/views/controls/menu/menu_controller.cc
@@ -1525,8 +1525,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, true /* is_sibling_menu_show */));
+ pressed_lock_.reset(new MenuButton::PressedLock(button, true, nullptr));
// 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.h ('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