MacViews menus should fade out when you click away from them |
||||||||||
Issue descriptionChrome Version: 68.0.3398.0 OS: macOS 10.13.4 What steps will reproduce the problem? (1) Open a menu in MacViews browser mode, like the app menu. (2) Click somewhere else in the window (not on a menu item). What is the expected result? The menu should fade away (like Cocoa menus). What happens instead? The menu disappears instantly.
,
Jun 20 2018
,
Jun 22 2018
,
Jul 2
,
Jul 12
,
Jul 12
,
Jul 26
,
Aug 2
MacViews triage: I'll try to work on this in M70. We already do fade the menus for acceptance, so it shouldn't be too hard.
,
Aug 15
I see a fade out in 70.0.3523.0
,
Aug 15
I'm not seeing it. Are we doing something different?
,
Aug 16
They fade when you accept an item, but not when you dismiss the menu with an outside click.
,
Sep 18
I looked at how to implement this. We can reuse much of MenuClosureAnimationMac (yay!) by adding support to it for having no target MenuItemView* and taking a SubmenuView* in that situation. The logical place to do this seems to be MenuController::Cancel(), but there are many ways to reach that point and not all of them have a SubmenuView available. Instead probably the best place to do this is in MenuController::RepostEventAndCancel(). Bumping the target to 71.
,
Sep 18
,
Sep 27
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/951a112960520a46111a0d7dda53a405648d0193 commit 951a112960520a46111a0d7dda53a405648d0193 Author: Elly Fong-Jones <ellyjones@chromium.org> Date: Thu Sep 27 15:51:17 2018 macviews: run menu closure animation for dismissals by clicking outside This change: 1) Adds support to MenuClosureAnimationMac for animating menu closure without animating selecting an item; 2) Has MenuController use MenuClosureAnimationMac to animate cancels caused by outside clicks Bug: 833856 Change-Id: I9743b396798e4b125c038b35decc9aceb083926d Reviewed-on: https://chromium-review.googlesource.com/1231837 Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#594738} [modify] https://crrev.com/951a112960520a46111a0d7dda53a405648d0193/chrome/browser/ui/views/menu_model_adapter_test.cc [modify] https://crrev.com/951a112960520a46111a0d7dda53a405648d0193/ui/views/controls/menu/menu_closure_animation_mac.h [modify] https://crrev.com/951a112960520a46111a0d7dda53a405648d0193/ui/views/controls/menu/menu_closure_animation_mac.mm [modify] https://crrev.com/951a112960520a46111a0d7dda53a405648d0193/ui/views/controls/menu/menu_controller.cc [modify] https://crrev.com/951a112960520a46111a0d7dda53a405648d0193/ui/views/controls/menu/menu_controller_unittest.cc
,
Sep 27
|
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by gov...@chromium.org
, Apr 25 2018