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

Issue 2880623002: [ash-md] Fixed MenuButton focus appearing after dismissing menus. (Closed)

Created:
3 years, 7 months ago by bruthig
Modified:
3 years, 7 months ago
Reviewers:
yoshiki, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ash-md] Fixed MenuButton focus appearing after dismissing menus. The InkDrop hover was not properly being set when menus were being shown/dismissed and the event handler target was changing. BUG=719399 TEST=views_unittests --gtest_filter=*MenuButtonTest* Review-Url: https://codereview.chromium.org/2880623002 Cr-Commit-Position: refs/heads/master@{#472716} Committed: https://chromium.googlesource.com/chromium/src/+/0a2a69a314c707ddfb83387690242dc86b088eed

Patch Set 1 #

Patch Set 2 : Added check for null Widget. #

Total comments: 1

Patch Set 3 : Reworked solution to use CustomButton::ShouldEnterHoveredState(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -12 lines) Patch
M ui/views/controls/button/menu_button.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/controls/button/menu_button_unittest.cc View 1 2 12 chunks +52 lines, -12 lines 0 comments Download

Messages

Total messages: 31 (21 generated)
bruthig
sky@, can you take a quick look and let me know if you have any ...
3 years, 7 months ago (2017-05-12 20:34:35 UTC) #10
sky
https://codereview.chromium.org/2880623002/diff/20001/ui/views/controls/button/menu_button.cc File ui/views/controls/button/menu_button.cc (right): https://codereview.chromium.org/2880623002/diff/20001/ui/views/controls/button/menu_button.cc#newcode406 ui/views/controls/button/menu_button.cc:406: if (GetWidget()) { What about dispatching the event at ...
3 years, 7 months ago (2017-05-14 15:52:26 UTC) #11
bruthig
sky@, can you take another look? I've completely changed the approach here to re-use CustomButton::ShouldEnterHoveredState().
3 years, 7 months ago (2017-05-16 15:42:23 UTC) #17
sky
Nice! LGTM
3 years, 7 months ago (2017-05-17 16:17:57 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2880623002/40001
3 years, 7 months ago (2017-05-17 16:21:20 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/429439)
3 years, 7 months ago (2017-05-17 20:09:13 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2880623002/40001
3 years, 7 months ago (2017-05-17 20:18:41 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/429606)
3 years, 7 months ago (2017-05-17 23:56:29 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2880623002/40001
3 years, 7 months ago (2017-05-18 03:01:29 UTC) #28
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 06:58:18 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/0a2a69a314c707ddfb8338769024...

Powered by Google App Engine
This is Rietveld 408576698