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

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

Issue 14818007: [Aura] Ignore selection changes when a menu is closing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 7 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
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 584da3cd4847341a0d61556dfd6743537e3a8793..017879f02dae3b05b476ab19f5863ec57c2a8c37 100644
--- a/ui/views/controls/menu/menu_controller.cc
+++ b/ui/views/controls/menu/menu_controller.cc
@@ -2263,6 +2263,10 @@ void MenuController::HandleMouseLocation(SubmenuView* source,
if (showing_submenu_)
return;
+ // Ignore mouse events if we're closing the menu.
+ if (exit_type_ != EXIT_NONE)
+ return;
+
MenuPart part = GetMenuPart(source, mouse_location);
UpdateScrolling(part);
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698